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

Can I change the source of downloading python? #18

Closed
simlegate opened this issue May 17, 2013 · 7 comments
Closed

Can I change the source of downloading python? #18

simlegate opened this issue May 17, 2013 · 7 comments

Comments

@simlegate
Copy link

@simlegate simlegate commented May 17, 2013

it is too slow now !

@yyuu

This comment has been minimized.

Copy link
Collaborator

@yyuu yyuu commented May 17, 2013

The python-build (the backend of pyenv install) will try to download files via mirror site if PYTHON_BUILD_MIRROR_URL is defined as environment variable. See also README.md of python-build.

@simlegate

This comment has been minimized.

Copy link
Author

@simlegate simlegate commented May 17, 2013

README.md link?

yyuu pushed a commit that referenced this issue May 17, 2013
@yyuu

This comment has been minimized.

Copy link
Collaborator

@yyuu yyuu commented May 17, 2013

I setup official mirror for python-build in #20. Just pulling the latest master of pyenv enables it. It might make the downloads faster.

If you're still having the trouble of download speed, there're options for you.

  1. Create your private mirror and setup it in ${PYTHON_BUILD_MIRROR_URL}.
  2. Raise your bandwidth.
@yyuu yyuu closed this May 17, 2013
@huntzhan

This comment has been minimized.

Copy link

@huntzhan huntzhan commented Mar 30, 2016

@yyuu I tried to make a local mirror by cloning yyuu/yyuu.github.com, but it doesn't work. It's seems that https://github.com/yyuu/yyuu.github.com/tree/master/pythons doesn't contains any Python source package, am I right?

@huntzhan

This comment has been minimized.

Copy link

@huntzhan huntzhan commented Mar 30, 2016

https://github.com/yyuu/yyuu.github.com/blob/master/pythons/update.sh#L50

for file in source/*; do
  base="$(basename "$file")"
  md5="$(compute_md5 < "$file")"
  sha="$(compute_sha2 < "$file")"
  ln -f "$file" "$md5"
  ln -f "$file" "$sha"
  sed -i -e "/>$base</s/^.*$/<li><a href=\"$sha\">$base<\/a><\/li>/" index.html
done

Maybe I could just create a source directory and download the packages manually, then run the update.sh script.

@yyuu

This comment has been minimized.

Copy link
Collaborator

@yyuu yyuu commented Mar 30, 2016

@huntzhan I've removed CPython sources from http://yyuu.github.io in yyuu/yyuu.github.com@391c0d1 since CPython sources are distributed via fast.ly nowadays. You can add CPython sources in your clone if needed.

@huntzhan

This comment has been minimized.

Copy link

@huntzhan huntzhan commented Mar 30, 2016

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.