Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
move _python_was_build to .python_was_built (move yours before you ru…
Browse files Browse the repository at this point in the history
…n bootstrap again)
  • Loading branch information
maix committed Mar 18, 2011
1 parent 06b642a commit 2fe3dc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .hgignore
Expand Up @@ -18,4 +18,4 @@ glob:extra/design/structure.dot.png
links\.txt
^.*tar\.gz$
^bootstrap.py$
^_python_was_build$
^.python_was_built$
8 changes: 4 additions & 4 deletions extra/bootstrap-extra.py
Expand Up @@ -157,7 +157,7 @@ def adjust_options(options, args):
if not path.exists(build_dir):
os.mkdir(build_dir)

if not os.path.exists('_python_was_build') or options.force_rebuild:
if not os.path.exists('.python_was_built') or options.force_rebuild:
# checkout python distribution
call_subprocess(FETCH_CMD + ['http://python.org/ftp/python/%s/Python-%s.tar.bz2' % (python_version, python_version)],
cwd=build_dir)
Expand All @@ -170,9 +170,9 @@ def adjust_options(options, args):
call_subprocess(['make'], cwd=python_folder)
call_subprocess(['make', 'install'], cwd=python_folder)

# touch a special file to indicate we have already build a python interpreter
with open('_python_was_build', 'a'):
os.utime('_python_was_build', None)
# touch a special file to indicate we have already built a python interpreter
with open('.python_was_built', 'a'):
os.utime('.python_was_built', None)

options.python = path.join(python_folder, 'python')
options.no_site_packages = True
Expand Down

0 comments on commit 2fe3dc9

Please sign in to comment.