blob: d65f746eeaf984eae05a0215226cc5137ef21c8a (
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
|
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)],
cmdclass=dict([("build_ext", build_ext)]),
)
setup(**setup_args)
|