Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6792c1

Browse files
committed
Stop creating a Python-X.Y.Z-pyX.Y.egg-info file on install (#10645)
1 parent c7f9f2b commit e6792c1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,13 @@ def initialize_options (self):
17801780
install.initialize_options(self)
17811781
self.warn_dir=0
17821782

1783+
# Customize subcommands to not install an egg-info file for Python
1784+
sub_commands = [('install_lib', install.has_lib),
1785+
('install_headers', install.has_headers),
1786+
('install_scripts', install.has_scripts),
1787+
('install_data', install.has_data)]
1788+
1789+
17831790
class PyBuildInstallLib(install_lib):
17841791
# Do exactly what install_lib does but make sure correct access modes get
17851792
# set on installed directories and files. All installed files with get

0 commit comments

Comments
 (0)