-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (30 loc) · 888 Bytes
/
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 python3
import os
from setuptools import setup, find_packages
from pathlib import Path
from setuptools.command.install import install
import subprocess
class CustomInstall(install):
def run(self):
install.run(self) # Run the default installation first
subprocess.check_call(['pip', 'install', '-r', 'requirements.txt'])
thisDir = Path(__file__).parent
formatsPath = thisDir / "repair_algorithms"
kaitaiSetuptoolsCfg = {
"formats": {
"zip_data.py": {
"path": "repair_algorithms/zip.ksy",
}
},
"outputDir": thisDir / "repair_algorithms",
"inputDir": formatsPath
}
setup(name='DR4DNA', version='1.0.0b', use_scm_version=True, kaitai=kaitaiSetuptoolsCfg,
packages=find_packages(),
setup_requires=[
'pip',
],
cmdclass={
'install': CustomInstall,
},
)