forked from LemmaSoftware/ReGrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (42 loc) · 1.18 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
#!/usr/bin/env python
import sys
from setuptools import setup, Extension
from setuptools.command.build_py import build_py
try:
from pyqt_distutils.build_ui import build_ui
except ImportError:
print("Please install pyqt_distutils")
print( "(sudo) pip(3) install pyqt-distutils")
exit()
class custom_build_py(build_py):
def run(self):
self.run_command('build_ui')
build_py.run(self)
with open("README.md", "r") as fh:
long_description = fh.read()
setup(name='ReGrid',
version='0.0.4',
description='Grid conversion utilities for multiphase flow modelling software',
author='Trevor P. Irons',
author_email='[email protected]',
url='https://git.lemmasofware.org/co2/ReGrid',
setup_requires=[
'pyqt_distutils',
'PyQt5',
'setuptools>=18.0',
],
install_requires=[
'matplotlib',
'scipy',
'numpy',
'cmocean',
'vtk'
],
packages=['regrid', 'regrid.flowgrid','regrid.gui'],
# for forced build of pyuic
cmdclass={
'build_ui': build_ui,
'build_py': custom_build_py,
},
license=['GPL 4.0'],
)