From bf866865418c7c58970b9f8da9151f7df3cba6af Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 23 Jul 2016 13:44:59 -0400 Subject: Eliminate dependence on convert_path. Windows allows forward slashes, so just use them. --- setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'setup.py') 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__'] -- cgit v1.2.1