[Python-checkins] r69616 - sandbox/trunk/release/release.py

barry.warsaw python-checkins at python.org
Sat Feb 14 15:51:10 CET 2009


Author: barry.warsaw
Date: Sat Feb 14 15:51:09 2009
New Revision: 69616
Log:
opcode_targets.h is only in Python 3.1.
Modified:
 sandbox/trunk/release/release.py
Modified: sandbox/trunk/release/release.py
==============================================================================
--- sandbox/trunk/release/release.py	(original)
+++ sandbox/trunk/release/release.py	Sat Feb 14 15:51:09 2009
@@ -265,9 +265,9 @@
 # Touch a few files that get generated so they're up-to-date in
 # the tarball.
 touchables = ['Include/Python-ast.h', 'Python/Python-ast.c']
- if tag.major < 3:
- # This file isn't in Python 3.x
- touchables.append('opcode_targets.h')
+ if os.path.exists('Python/opcode_targets.h'):
+ # This file isn't in Python < 3.1
+ touchables.append('Python/opcode_targets.h')
 print 'Touching:', COMMASPACE.join(name.rsplit('/', 1)[-1]
 for name in touchables)
 for name in touchables:


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /