Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 33cf133 #22

Closed
wants to merge 2 commits into from
Closed

Fix 33cf133 #22

wants to merge 2 commits into from

Conversation

lorencarvalho
Copy link
Contributor

This allows us to use . in our installation arguments while still avoiding the Homebrew prefix bug fixed by #18

@coveralls
Copy link

coveralls commented May 5, 2018

Pull Request Test Coverage Report for Build 40

  • 0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.3%) to 70.463%

Files with Coverage Reduction New Missed Lines %
.tox/py36/lib/python3.6/site-packages/shiv/pip.py 2 93.55%
Totals Coverage Status
Change from base Build 36: -0.3%
Covered Lines: 198
Relevant Lines: 281

💛 - Coveralls

Copy link
Contributor

@rouge8 rouge8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sure there are also other edgecases that would be good to test 😕

@@ -68,6 +59,10 @@ def install(interpreter_path: str, args: List[str]) -> None:
"""
with clean_pip_env():

# convert '.' to absolute path if it exists
if '.' in args:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will break if someone uses ... Not sure how comprehensive you want to be. Maybe:

# convert '.' to absolute paths if it exists
for i, arg in enumerate(args):
    if arg.startswith('.'):
        args[i] = Path.cwd().joinpath(arg).absolute().as_posix()

@lorencarvalho
Copy link
Contributor Author

@rouge8 unfortunately I'm still hitting the "error: must supply either home or prefix/exec-prefix -- not both" issue here...

@rouge8
Copy link
Contributor

rouge8 commented May 5, 2018

unfortunately I'm still hitting the "error: must supply either home or prefix/exec-prefix -- not both" issue here...

Hmmm, now I'm wondering if #18 actually worked or if I was just hitting cached pip builds...

@lorencarvalho
Copy link
Contributor Author

@rouge8 I'm gonna go ahead and revert our PRs, will you be at PyCon by chance?

@rouge8
Copy link
Contributor

rouge8 commented May 5, 2018

Yeah that's probably best 😖 . I won't be at PyCon this year unfortunately. Can you reopen #18 #16 after reverting so that we can still track the issue?

@lorencarvalho
Copy link
Contributor Author

absolutely, done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants