-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Poetry doesn`t use provided private repo when compiling dependencies from source #3744
Comments
We've come to use a temporary workaround for this by setting a pip config option
|
You can use this workaround btw: |
This seems similar to #3249. I will have to try the env var work-around but hoping for a more permanent fix by passing down the default index to pip install commands. |
I write to switch system to poetry. Because, `poetry add "git+https://github.com/jvkersch/hsmmlearn"` is failed. poetry don't load system Cython. [Poetry doesn`t use provided private repo when compiling dependencies from source · Issue #3744 · python-poetry/poetry](python-poetry/poetry#3744) ~~~console 2021-06-02T18:46:48 ✖ poetry add "git+https://github.com/jvkersch/hsmmlearn" PackageInfoError Unable to determine package info for path: /tmp/pypoetry-git-hsmmlearn0klkxnrl Fallback egg_info generation failed. Command ['/tmp/tmpqwo321rq/.venv/bin/python', 'setup.py', 'egg_info'] errored with the following return code 1, and output: Traceback (most recent call last): File "/tmp/pypoetry-git-hsmmlearn0klkxnrl/setup.py", line 54, in <module> ext_modules=get_extension_modules(), File "/tmp/pypoetry-git-hsmmlearn0klkxnrl/setup.py", line 23, in get_extension_modules from Cython.Build import cythonize ModuleNotFoundError: No module named 'Cython' at ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/inspection/info.py:502 in _pep517_metadata 498│ try: 499│ venv.run("python", "setup.py", "egg_info") 500│ return cls.from_metadata(path) 501│ except EnvCommandError as fbe: → 502│ raise PackageInfoError( 503│ path, "Fallback egg_info generation failed.", fbe 504│ ) 505│ finally: 506│ os.chdir(cwd.as_posix()) ~~~ Even if you were to upload it to PyPi. Basically, it is better to keep the information needed for the build closed locally. It is easier to keep the information needed to build locally, even if it is uploaded to PyPi, so I let poetry do the work and made the global library as unnecessary as possible.
Duplicate #3249, indeed. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).We have a private repo, and it seems that while fetching .whl packages from it works fine, when any package on PyPi is published in source (and thus, stored in source in our mirror), building it leads to situation, when that package dependencies are being downloaded directly from the main PyPi.
Here is the log example from out TeamCity server, this time black package triggered the bug, because it only has tar.gz version
Pay attention to this line
It seems to be the culprit with
-i https://pypi.org/simple
flagThe text was updated successfully, but these errors were encountered: