-
-
Notifications
You must be signed in to change notification settings - Fork 424
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
series of issues when converting from poetry in a complex, multiplatform project #745
Comments
ISSUE 2: I didn't see poetry support keyword ISSUE 4: You need to put a space between the URL and semicolon like ISSUE 5: might be solved in the main branch, care to have a test? Other issues might be potential bugs, I will look into them soon. Thanks! |
ISSUE 6: Do you have any |
yes we have a source (also your change above fixes the issue with win32, thanks)
really we need 2 sources though. removing it changed the error in the logs now i get this:
it's weird because the solver solved for everything.... the installer just isn't installing. this is the thing it's trying to install... which is weird, since setuptools is already installed at version 59.2.0 . also not sure why it makes all these little installations to temp files. why not just install everything to the current venv (if one is present) or to the pdm-managed venv?
|
It is trying to set up an isolated and ephemeral environment for PEP 517 build, Can you show the |
VERSION: pdm, version 1.10.3
Each number represents some sort of bug/issue:
ISSUE 1 (MINOR). using pyenv-windows, outside of a virtualenv, pdm was not installed to scripts directory. other things install properly. inside of a venv, pdm also installs correctly.
solution:
python -mdm
ISSUE 2. import poetry doesn't work with platform specifiers
python -mpdm import -vf poetry ./pyproject.toml
Error:
TypeError: __init__() got an unexpected keyword argument 'platform'
Reason:
pywin32 = {version = ">=228", platform = "win32"}
solution: removed all platform specifiers (hoping to put them back later)
ISSUE 3 (SEVERE). pdm uses an odd/broken package called
pythonfinder
, which is incompatible with pyenv-win32, and results in it simply not working becauseC:/Users/erik/.pyenv/pyenv-win/shims/python
is not a binary executablehardcoded things in the path until it wasn't broken. todo: maybe patch pdm to not use pythonfinder or patch pythonfinder to work with pyenv-win (it calls popen on the result... what if it's a bash script... fails)
ISSUE 4. git@dependencies don't work with platform specifiers:
"vidarelay @ git+ssh://git@gitlab.com/atakama/ccserver.git; sys_platform=='win32'"
didn't work, i got:pip._vendor.pkg_resources.RequirementParseError: Parse error at "'sys_plat'": Expected stringEnd
removing those specifiers (which is bad, but i wanted to see what happend) finally worked!
ISSUE 5 (WORKAROUND). solver got stuck in an infinite loop : see https://pastebin.com/1NU3HvHp
Solution: remove flake8 (hoping it would help) ... it did!
Finally...solving took a bit longer than poetry... but it worked!
ISSUE 6 (PIP INI, NO GOOD WORKAROUND): installation failures when extra-index-url is required to resolve. the bug seems to be that it is using the SAME --extra-index-url and the --index-url (even thought they are different in my pip.ini) example of pip.ini
output of failure
Giving up for now :( will revisit later.
The text was updated successfully, but these errors were encountered: