-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
51 lines (48 loc) · 1.48 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages, Extension
install_reqs = [
'Pillow',
'matplotlib',
'importlib-resources',
'fabio>=0.11',
'pyyaml',
'hexrd',
'silx'
]
# This is a hack to get around the fact that pyside2 on conda-forge doesn't install
# dist info so setuptools can't find it, even though its there, which results in
# pkg_resources.DistributionNotFound, even though the package is available. So we
# only added it if we aren't building with conda.
if os.environ.get('CONDA_BUILD') != '1':
install_reqs.append('pyside2>=5.15')
setup(
name='hexrdgui',
use_scm_version=True,
setup_requires=['setuptools-scm'],
description='',
long_description='',
author='Kitware, Inc.',
author_email='kitware@kitware.com',
url='https://github.com/hexrd/hexrdgui',
license='BSD',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10'
],
packages=find_packages(),
package_data={'hexrd': ['ui/resources/**/*']},
python_requires='>=3.9',
install_requires=install_reqs,
entry_points={
'gui_scripts': [
'hexrdgui = hexrd.ui.main:main'
]
}
)