forked from rigdenlab/ABCFold
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
35 lines (26 loc) · 832 Bytes
/
setup.py
File metadata and controls
35 lines (26 loc) · 832 Bytes
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
from distutils.command.build import build # type: ignore
from setuptools import setup
class BuildCommand(build):
user_options = build.user_options + [
(
"script-python-path=",
None,
"Path to Python interpreter to be included in the scripts",
)
]
def initialize_options(self):
build.initialize_options(self)
self.script_python_path = None
def finalize_options(self):
build.finalize_options(self)
def run(self):
global script_python_path
script_python_path = self.script_python_path
build.run(self)
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
cmdclass={"build": BuildCommand},
long_description=long_description,
long_description_content_type="text/markdown",
)