-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
This is a great tool but unfortunately when trying to generate a set of recipes that includes requests as a dependency, I encounter an error. This can be reproduced by running for the requests package on its own:
build@hostname:~$ pipoe --python python3 -p requests
Gathering info:
requests
[ERROR] Failed to gather requests (
win-inet-pton; sys_platform == "win32" and python_version == "2.7" and extra == 'socks'
^
Parse error at line 1, column 68: expected EOF. trail: [wsp]
)
Generating recipes:
PREFERRED_VERSIONS are available in: ./python3-versions.inc
It looks like the parser imported from pep508_parser raises an exception when it encounters the requires_dist value 'win-inet-pton; sys_platform == "win32" and python_version == "2.7" and extra == \'socks\''.
Exception handling could be added around
d = parse_requires_dist(dep)
to ensure that the script completes and adds the other dependencies, I'm not familiar with pep508 to know whether the parser should be fixed as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels