Commit 1251a231 authored by Jason R. Coombs's avatar Jason R. Coombs

Replace install behavior on import with direct invocation (now that 'enabled'...

Replace install behavior on import with direct invocation (now that 'enabled' logic is duplicated in pth file).
parent 83a85a71
from . import enabled, add_shim
if enabled():
add_shim()
......@@ -100,7 +100,7 @@ class install_with_pth(install):
_pth_contents = textwrap.dedent("""
import os
enabled = os.environ.get('SETUPTOOLS_USE_DISTUTILS') == 'local'
enabled and __import__('_distutils_hack.install')
enabled and __import__('_distutils_hack').add_shim()
""").lstrip().replace('\n', '; ')
def initialize_options(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment