forked from nightlark/anchore-syft-wheel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
30 lines (23 loc) · 828 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
import os
import sys
from distutils.text_file import TextFile
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
from skbuild import setup
# may be needed in some cases to get version correctly during builds
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from setuptools_scm import get_version # noqa: E402
class genericpy_bdist_wheel(_bdist_wheel):
def finalize_options(self):
_bdist_wheel.finalize_options(self)
self.root_is_pure = False
def get_tag(self):
python, abi, plat = _bdist_wheel.get_tag(self)
python, abi = "py2.py3", "none"
return python, abi, plat
cmdclass = {"bdist_wheel": genericpy_bdist_wheel}
setup(
cmdclass=cmdclass,
package_dir={"": "src"},
packages=["anchore_syft"],
cmake_install_dir="src/anchore_syft/data",
)