Skip to content

Commit

Permalink
Update regex for download URL
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Aug 24, 2015
1 parent 5058021 commit d81eb2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/console/installer.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ entry_point=guessnumber:main
console=true

[Python]
version=3.5.0b4
version=3.5.0rc1
bitness=64
format=bundled

Expand Down
3 changes: 2 additions & 1 deletion nsist/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,11 @@ def fetch_python_embeddable(self):
arch_tag = 'amd64' if (self.py_bitness==64) else 'win32'
filename = 'python-{}-embed-{}.zip'.format(self.py_version, arch_tag)
url = 'https://www.python.org/ftp/python/{}/{}'.format(
re.sub(r'b\d+$', '', self.py_version), filename)
re.sub(r'(a|b|rc)\d+$', '', self.py_version), filename)
cache_file = get_cache_dir(ensure_existence=True) / filename
if not cache_file.is_file():
logger.info('Downloading embeddable Python build...')
logger.info('Getting %s', url)
download(url, cache_file)

logger.info('Unpacking Python...')
Expand Down

0 comments on commit d81eb2b

Please sign in to comment.