-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (45 loc) · 1.24 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
56
57
58
59
60
61
__author__ = "Shane Drabing"
__license__ = "MIT"
__email__ = "[email protected]"
# IMPORTS
import sys
import subprocess
import setuptools
from setuptools.command.install import install
# CONSTANTS
HERE = sys.path[0]
WINDOWS = str(sys.platform) in ("win32", "cygwin")
# CLASSES
class Install(install):
"""Post-installation for installation mode."""
def run(self):
install.run(self)
if WINDOWS:
subprocess.run(["call", ".\src\compile.bat"], cwd=HERE, shell=True)
else:
subprocess.run(["sh", "./src/compile.sh"], cwd=HERE)
# SCRIPT
setuptools.setup(
name="seedling",
version="0.0.1",
author="Shane Drabing",
author_email="[email protected]",
packages=setuptools.find_packages(),
url="https://github.com/shanedrabing/seedling",
description="Quick and easy molecular phylogenies.",
long_description=open("README.md", "r").read(),
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
],
data_files=[
("", ["LICENSE"])
],
install_requires=[
"requests"
],
cmdclass={
"install": Install,
},
)