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

pynsist didn't use pip configurations #181

Open
liudonghua123 opened this issue Apr 17, 2019 · 3 comments
Open

pynsist didn't use pip configurations #181

liudonghua123 opened this issue Apr 17, 2019 · 3 comments

Comments

@liudonghua123
Copy link

I configured the index-url of pip in my %HOME%/pip/pip.conf with the following contents.

[global]
index-url=https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn

And I also checked the configurations.

D:\code\python\pynsist\examples\pyqt5>pip config list
global.index-url='https://pypi.tuna.tsinghua.edu.cn/simple'
install.trusted-host='pypi.tuna.tsinghua.edu.cn'

D:\code\python\pynsist\examples\pyqt5>

But when I run pynsist installer.cfg, it did not download the packages from the index-url I specified. So the download speed was extreme slow.

D:\code\python\pynsist\examples\pyqt5>pynsist installer.cfg
Unpacking Python...
Copying packages into build directory...
Downloading wheel: https://files.pythonhosted.org/packages/a7/22/67cc2bac6ae2cd3a7eabb2a2e91638b94bdc6e0503747e49670ce44bb5b0/PyQt5-5.10.1-5.10.1-cp35.cp36.cp37.cp38-none-win_amd64.whl

@takluyver
Copy link
Owner

pip.conf configures pip, so it's expected that it doesn't affect pynsist.

However, I don't think there's currently any way to control which servers it fetches packages from, so I'll consider this a feature request.

In the meantime, you could download the wheels another way (e.g. pip wheel), and then use the extra_wheel_sources or local_wheels options to use them with Pynsist. Docs

@dmulkey-qubitekk
Copy link

Just throwing in another vote for the alternate server feature request. For Azure users, this would enable you to point pynsist at Azure Artifacts.

@lefi7z
Copy link

lefi7z commented Nov 4, 2022

This would indeed be a helpful feature.

I created a pull request adding a extra_index_urls config section: #256

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

No branches or pull requests

4 participants