-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (26 loc) · 704 Bytes
/
setup.py
File metadata and controls
34 lines (26 loc) · 704 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
from setuptools import setup
from distutils.command.build import build
from setuptools.command.install import install
from setuptools.command.develop import develop
import os
import subprocess
BASEPATH = os.path.dirname(os.path.abspath(__file__))
class custom_develop(develop):
def run(self):
original_cwd = os.getcwd()
# build custom ops
folders = [
]
for folder in folders:
os.chdir(folder)
subprocess.check_call(['make'])
os.chdir(original_cwd)
super().run()
setup(name='dbwalk',
py_modules=['dbwalk'],
install_requires=[
],
cmdclass={
'develop': custom_develop,
}
)