Skip to content

Commit

Permalink
Use abspath, update news and bump version
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Ryan <dan@danryan.co>
  • Loading branch information
techalchemy committed Jun 26, 2018
1 parent 4fdc975 commit f2500c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/18.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed an issue with resolving certain packages which imported and executed other libraries (such as ``versioneer``) during ``setup.py`` execution.
2 changes: 1 addition & 1 deletion src/requirementslib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding=utf-8 -*-
__version__ = "1.0.6"
__version__ = "1.0.7"


from .exceptions import RequirementError
Expand Down
2 changes: 1 addition & 1 deletion src/requirementslib/models/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def get_name(self):
):
from distutils.core import run_setup

old_curdir = os.getcwd()
old_curdir = os.path.abspath(os.getcwd())
try:
os.chdir(str(self.setup_path.parent))
dist = run_setup(self.setup_path.as_posix(), stop_after="init")
Expand Down

0 comments on commit f2500c6

Please sign in to comment.