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

Micropipenv ignores subdirectory for VCS packages. #236

Closed
MaxandreOgeret opened this issue Jun 28, 2022 · 2 comments · Fixed by #237
Closed

Micropipenv ignores subdirectory for VCS packages. #236

MaxandreOgeret opened this issue Jun 28, 2022 · 2 comments · Fixed by #237

Comments

@MaxandreOgeret
Copy link

Describe the bug
Micropipenv ignores subdirectory for VCS packages.

To Reproduce
Steps to reproduce the behavior:

  • Generate a Pipenv.lock using git vcs and a subdirectory:
    pipenv install git+ssh://git@github.com/RidgeRun/gstd-1.x.git@v0.13.2#egg=pygstc\&subdirectory=libgstc/python
  • try to run micropipenv
    micropipenv install

Error :

    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-r4wwbzy1/pygstc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-r4wwbzy1/pygstc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-r4wwbzy1/pygstc/pip-egg-info
         cwd: /tmp/pip-install-r4wwbzy1/pygstc/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3.8/tokenize.py", line 392, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-r4wwbzy1/pygstc/setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Expected behavior
micropipenv navigates to the subdirectory to find the setup.py

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@frenzymadness
Copy link
Collaborator

Interesting, thanks for the report. Could you please paste the lockfile here?

@frenzymadness
Copy link
Collaborator

I'm going to open a PR with a fix for this for Pipfile.lock. I wanted to make it work also for poetry, but it seems that poetry does not support subdirectories yet.

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 a pull request may close this issue.

2 participants