-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (50 loc) · 1.72 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
#!/usr/bin/env python
import platform
import shutil
import os.path
from distutils.command.build_ext import build_ext
from setuptools import setup, Extension, find_packages
class build_ext(build_ext):
def run(self):
pass
def output_dir(self):
if not self.inplace:
return os.path.join(self.get_finalized_command('build').build_platlib, 'buildster')
build_py = self.get_finalized_command('build_py')
package_dir = os.path.abspath(build_py.get_package_dir('buildster'))
return package_dir
content = ""
try:
descriptor = open("readme.md", "r")
content = descriptor.read()
descriptor.close()
except:
content = ""
requirements = []
requirements.append("patool")
requirements.append("pyunpack")
if (platform.system().lower() == "linux"):
requirements.append("pypatchelf")
setup(name="buildster",
version="1.5",
maintainer="Pierce L. Brooks",
maintainer_email="[email protected]",
author="Pierce L. Brooks",
author_email="[email protected]",
url="https://github.com/PierceLBrooks/Buildster",
description="Buildster: Software Project Construction Automation",
long_description=content,
long_description_content_type="text/markdown",
classifiers=["Environment :: Console",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Topic :: Software Development"],
license="MIT",
entry_points={
'console_scripts': [
'buildster = buildster.command_line:main',
]},
packages=find_packages(),
install_requires=requirements,
zip_safe=True,
cmdclass={'build_ext': build_ext})