diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-07-23 13:44:59 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-07-23 13:44:59 -0400 |
commit | bf866865418c7c58970b9f8da9151f7df3cba6af (patch) | |
tree | 556f2827ebd5f3fee5b9cc4146b7e14999c11ca7 /setup.py | |
parent | 2eb1007f8d1a2cf6b60f19df665c5dade3d7c8da (diff) | |
download | external_python_setuptools-bf866865418c7c58970b9f8da9151f7df3cba6af.tar.gz external_python_setuptools-bf866865418c7c58970b9f8da9151f7df3cba6af.tar.bz2 external_python_setuptools-bf866865418c7c58970b9f8da9151f7df3cba6af.zip |
Eliminate dependence on convert_path. Windows allows forward slashes, so just use them.
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -7,12 +7,13 @@ import io import os import sys import textwrap -from distutils.util import convert_path import setuptools +here = os.path.dirname(__file__) + # Allow to run setup.py from another directory. -os.chdir(os.path.dirname(os.path.abspath(__file__))) +here and os.chdir(here) def require_metadata(): "Prevent improper installs without necessary metadata. See #659" @@ -23,7 +24,8 @@ def require_metadata(): def read_commands(): command_ns = {} - init_path = convert_path('setuptools/command/__init__.py') + cmd_module_path = 'setuptools/command/__init__.py' + init_path = os.path.join(here, cmd_module_path) with open(init_path) as init_file: exec(init_file.read(), command_ns) return command_ns['__all__'] |