summaryrefslogtreecommitdiff
path: root/math/py-pygsl/files/patch-setup.py
blob: 3b3b1f1e273b7f70194061aca6b5ef9ab0472b9c (plain) (blame)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- setup.py.orig	2021-12-07 16:05:38 UTC
+++ setup.py
@@ -89,8 +89,6 @@ del versiontext
 gsldist_path = os.path.join(pygsldir, "gsl_dist")
 sys.path.insert(0, gsldist_path)
 
-from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
-
 import setuptools
 import setuptools.command
 import setuptools.command.install
@@ -173,26 +171,6 @@ else:
     del t_file
 
 
-class CustomInstallCommand(setuptools.command.install.install):
-    def run(self):
-        # first re-generate GSL wrappers using SWIG
-        self.run_command('gsl_wrappers')
-        # then configure
-        self.run_command('config')
-        # then install
-        setuptools.command.install.install.run(self)
-        #super().run()
-
-class CustomBdistWheelCommand(_bdist_wheel):
-    def run(self):
-        # first re-generate GSL wrappers using SWIG
-        self.run_command('gsl_wrappers')
-        # then configure
-        self.run_command('config')
-        # then install
-        _bdist_wheel.run(self)
-        #super().run()
-
 py_module_names = ['errors',
                    'statistics.__init__',
 		   '_numobj',
@@ -270,10 +248,9 @@ setup (name = proj_name,
        ext_package = 'pygsl',
        ext_modules = exts,
        headers = headers,
-       cmdclass = {'bdist_wheel': CustomBdistWheelCommand,
+       cmdclass = {
                    'config' : gsl_Config_Path,
                    'gsl_wrappers': gsl_CodeGenerator.gsl_CodeGenerator,
-                   'install': CustomInstallCommand,
                    #'build_sphinx': BuildDoc
                    },
        install_requires = ['numpy'],