File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111class install (old_install ):
1212
13- # Always run install_clib - the command is cheap, so no need to bypass it
14- sub_commands = old_install .sub_commands + [('install_clib' , lambda x : True )]
13+ # Always run install_clib - the command is cheap, so no need to bypass it;
14+ # but it's not run by setuptools -- so it's run again in install_data
15+ sub_commands = old_install .sub_commands + [
16+ ('install_clib' , lambda x : True )
17+ ]
1518
1619 def finalize_options (self ):
1720 old_install .finalize_options (self )
Original file line number Diff line number Diff line change 1+ import sys
2+ have_setuptools = ('setuptools' in sys .modules )
3+
14from distutils .command .install_data import install_data as old_install_data
25
36#data installer with improved intelligence over distutils
47#data files are copied into the project directory instead
58#of willy-nilly
69class install_data (old_install_data ):
710
11+ def run (self ):
12+ old_install_data .run (self )
13+
14+ if have_setuptools :
15+ # Run install_clib again, since setuptools does not run sub-commands
16+ # of install automatically
17+ self .run_command ('install_clib' )
18+
819 def finalize_options (self ):
920 self .set_undefined_options ('install' ,
1021 ('install_lib' , 'install_dir' ),
You can’t perform that action at this time.
0 commit comments