forked from HEXRD/hexrdgui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (46 loc) · 1.46 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
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages, Extension
install_reqs = [
'Pillow',
'matplotlib',
'importlib-resources',
'fabio@git+https://github.com/joelvbernier/fabio.git@master',
'pyyaml',
'hexrd'
]
# 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')
setup(
name='hexrd-gui',
use_scm_version=True,
setup_requires=['setuptools-scm'],
description='',
long_description='',
author='Kitware, Inc.',
author_email='[email protected]',
url='https://github.com/cryos/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.6'
],
packages=find_packages(),
package_data={'hexrd': ['ui/resources/**/*']},
python_requires='>=3.6',
install_requires=install_reqs,
entry_points={
'gui_scripts': [
'hexrd = hexrd.ui.main:main'
]
}
)