[ 
https://issues.apache.org/jira/browse/IMPALA-10994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17450159#comment-17450159
 ] 

ASF subversion and git services commented on IMPALA-10994:
----------------------------------------------------------

Commit f566e7dee7b64dcf309bfd497b0296f8e547dfb7 in impala's branch 
refs/heads/master from yx91490
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=f566e7d ]

IMPALA-10994: Normalize the pip package name part of download URL.

According to PEP-0503, pip repo server doesn't support unnormalized URL
access, and some package name within
'infra/python/deps/*requirements.txt' are unnormalized, e.g. 'Cython',
and pip_download.py will concat $PYPI_MIRROR and package name to get
download URL directly, which maybe unnormalized.

Fix this by normalize package name in download URL using the
recommanded method in PEP-0503.

Change-Id: I479df0ad7acf3c650b8f5317372261d5e2840864
Reviewed-on: http://gerrit.cloudera.org:8080/17987
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> Normalize pip package name within 'infra/python/deps' requirements
> ------------------------------------------------------------------
>
>                 Key: IMPALA-10994
>                 URL: https://issues.apache.org/jira/browse/IMPALA-10994
>             Project: IMPALA
>          Issue Type: Improvement
>            Reporter: yx91490
>            Assignee: yx91490
>            Priority: Major
>
> According to 
> [PEP-0503|https://www.python.org/dev/peps/pep-0503/#normalized-names], pip 
> package name should be normalized and clients MUST NOT rely on this 
> redirection and MUST request the normalized URL. otherwhise  when I set 
> envirement variable to fast pip downloa as bellow:
> {code:java}
> export PYPI_MIRROR=https://pypi.tuna.tsinghua.edu.cn
> {code}
> I got error for some package not found, for example:
> {code:java}
> https://pypi.tuna.tsinghua.edu.cn/simple/python_dateutil{code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to