forked from nickc92/ViewSCAD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·55 lines (46 loc) · 1.82 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
52
53
54
55
from setuptools import setup
from setuptools import find_packages
from setuptools.command.install import install
# For post-install script running using CustomInstallCommand, see:
# https://stackoverflow.com/a/45021666/3592884
import subprocess
def install_jupyter_extensions():
print('About to run install_jupyter_extensions')
process = subprocess.Popen(["./install_jupyter_extensions.sh"], stdout=subprocess.PIPE)
for line in process.stdout:
print(line.decode('utf8'))
print('install_jupyter_extensions completed')
class CustomInstallCommand(install):
def run(self):
install.run(self)
# install_jupyter_extensions()
with open('README.md') as f:
long_description = f.read()
setup(
name='viewscad',
version='0.2.0',
description='Jupyter renderer for the OpenSCAD & SolidPython constructive solid geometry systems',
author='Nick Choly',
author_email="nickcholy@gmail.com",
url='https://github.com/nickc92/ViewSCAD',
long_description=long_description,
long_description_content_type='text/markdown',
py_modules=['viewscad'],
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Mathematics",
],
cmdclass={
'install': CustomInstallCommand,
},
packages=find_packages(),
install_requires=['jupyter', 'jupyterlab', 'ipywidgets', 'pythreejs', 'solidpython'],
setup_requires=['jupyter', 'jupyterlab', 'ipywidgets', 'pythreejs', 'solidpython'],
)