aboutsummaryrefslogtreecommitdiffstats
path: root/wheel_artifacts/setup.py.base
blob: 9de30af5f238d068d6bfbfc1001a2070b387e4a1 (plain)
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
import setuptools
from setuptools import setup, Extension, Command

# This class and Extension file is intended only to force setuptools
# to understand we are using extension modules, but because we don't
# include the source files in the 'Extension' object, it gets wrongly
# lost.
class build_ext(Command):
    def initialize_options(self):
        pass
    def finalize_options(self):
        pass
    def run(self):
        pass
    def get_source_files(self):
        return []
    def get_requires_for_build_wheel(self):
        pass

setup_args = dict(
    include_package_data=True,
    packages = ["{name}"],
    ext_modules = [Extension("{fake_ext}", [], py_limited_api=True)],
    install_requires={install},
    cmdclass=dict([("build_ext", build_ext)]),
)
setup(**setup_args)