@@ -15,45 +15,6 @@ def finalize_options(self):
1515except ImportError :
1616 bdist_wheel = None
1717
18- class BaseInstallCommand (object ):
19- #Install arguments (not supported by wheels) for local installation
20- #Used by --install-option
21- # --install-option="--python-home=my_python_home"
22- user_options = [
23- ('python-home=' , None , 'The Python home path' ),
24- ('python-bin=' , None , 'Python program name directory' ),
25- ('python-lib=' , None , 'Python shared library directory' ),
26- ]
27-
28- def initialize_options (self ):
29- super ().initialize_options ()
30- self .python_home = ''
31- self .python_bin = ''
32- self .python_lib = ''
33- self .python_ver = f"{ sys .version_info .major } .{ sys .version_info .minor } "
34-
35- def finalize_options (self ):
36- super ().finalize_options ()
37-
38- def run (self ):
39- moduledefs = {
40- "python_home" : self .python_home ,
41- "python_bin" : self .python_bin ,
42- "python_lib" : self .python_lib ,
43- "python_ver" : self .python_ver ,
44- }
45- moduledefs_path = os .path .join (os .path .join (os .curdir , pkgname ), 'moduledefs.json' )
46- with open (moduledefs_path , 'w+' ) as openfile :
47- openfile .write (json .dumps (moduledefs ))
48-
49- super ().run ()
50-
51- class InstallCommand (BaseInstallCommand , install ):
52- user_options = getattr (install , 'user_options' , []) + BaseInstallCommand .user_options
53-
54- class DevelopCommand (BaseInstallCommand , develop ):
55- user_options = getattr (develop , 'user_options' , []) + BaseInstallCommand .user_options
56-
5718def get_release_version ():
5819 lcals = locals ()
5920 gbals = globals ()
@@ -129,8 +90,6 @@ def get_release_version():
12990 'Operating System :: Microsoft :: Windows' ,
13091 ],
13192 cmdclass = {
132- 'bdist_wheel' : bdist_wheel ,
133- 'install' : InstallCommand ,
134- 'develop' : DevelopCommand ,
93+ 'bdist_wheel' : bdist_wheel
13594 }
13695)
0 commit comments