-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
28 lines (26 loc) · 974 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
import subprocess
from setuptools import setup, find_packages
from setuptools.command.install import install as InstallCommand
# Define a custom installation command to execute Makefile commands
class CustomInstallCommand(InstallCommand):
def run(self):
targets = ['setup', 'lab', 'outputs'] # Replace with the targets from your Makefile
for target in targets:
subprocess.check_call(['sudo', 'make', target])
InstallCommand.run(self)
setup(
name='devsecopsbuilder', # Replace with your package name
version='1.0.0', # Replace with your package version
packages=find_packages(), # Automatically discover packages and sub-packages
install_requires=[
'pyYAML==6.0.1',
'networkx==3.2.1',
'matplotlib==3.8.2',
],
# Other metadata like author, description, license, etc.
# ...
# Specify the custom install command
cmdclass={
'install': CustomInstallCommand,
}
)