-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
39 lines (33 loc) · 1.47 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
#! /usr/bin/python3
from setuptools import find_packages, setup
import os
icons = [ filename for filename in os.listdir("src/icons")]
shaders = [ filename for filename in os.listdir("src/shader")]
modules = ['ngsgui'] + ['ngsgui.' + pkg for pkg in find_packages('src')]
dirs = { module : module.replace('ngsgui.','src/') if 'ngsgui.' in module else 'src' for module in modules
}
modules += ['spyder_ngsgui']
dirs['spyder_ngsgui'] = 'src/spyder_ngsgui'
dependencies = ["PyOpenGL", "psutil", "qtconsole>=4.4.0", "numpy",
"matplotlib>=2.2.3", "qtpy>=1.5.2", "ipykernel>=5.3.2",
"cloudpickle<1.2"]
try:
import PyQt5
except ImportError:
dependencies += ["PySide2>=5.14"]
setup(name="ngsgui",
version="0.1.13-dev",
description="New graphical interface for NGSolve",
packages=modules,
package_dir=dirs,
package_data = {'ngsgui.shader': shaders,
'ngsgui.icons' : icons},
include_package_data=True,
classifiers=("Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Development Status :: 2 - Pre-Alpha",
"Environment :: X11 Applications :: Qt",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)"),
extras_require = {'test': ["pytest-qt"] },
install_requires=dependencies,
entry_points={ "console_scripts" : "ngsolve = ngsgui.__main__:main" })