aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-07-23 13:44:59 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-07-23 13:44:59 -0400
commitbf866865418c7c58970b9f8da9151f7df3cba6af (patch)
tree556f2827ebd5f3fee5b9cc4146b7e14999c11ca7 /setup.py
parent2eb1007f8d1a2cf6b60f19df665c5dade3d7c8da (diff)
downloadexternal_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-xsetup.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index 60653216..4eb3f78e 100755
--- a/setup.py
+++ b/setup.py
@@ -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__']