File: setup.py.base

package info (click to toggle)
pyside6 6.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 45,904 kB
  • sloc: python: 202,640; cpp: 91,160; xml: 18,402; javascript: 1,182; ansic: 178; sh: 163; makefile: 87
file content (26 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (2)
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)