-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathsetup.py
executable file
·36 lines (28 loc) · 1.02 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
#!/usr/bin/env python
from setuptools import setup
import subprocess
import distutils.command.build_py
class BuildWithMake(distutils.command.build_py.build_py):
"""
Build using make.
Then do the default build logic.
"""
def run(self):
# Call make.
subprocess.check_call(["make"])
# Keep building the Python stuff
distutils.command.build_py.build_py.run(self)
setup(name="sonLib",
version="1.0",
description="Small general purpose library for C and Python with focus on "
"bioinformatics.",
author="Benedict Paten",
author_email="[email protected]",
url="https://github.com/benedictpaten/sonLib",
packages=["sonLib"],
# Hook the build command to also build with make
cmdclass={"build_py": BuildWithMake},
# Install all the executable scripts and binaries somewhere on the PATH
scripts=["bin/sonLibTests", "bin/sonLib_daemonize.py",
"bin/sonLib_kvDatabaseTest", "bin/sonLib_cigarTest",
"bin/sonLib_fastaCTest"])