Improve check to prevent overwriting const.py
svn: r20911
This commit is contained in:
parent
711e25e5bb
commit
9f87dfd54b
2
setup.py
2
setup.py
@ -244,7 +244,7 @@ def write_const_py(command):
|
||||
locale_dir = os.path.join(command.install_data, 'share', 'locale')
|
||||
else:
|
||||
#in build
|
||||
if os.access(const_py, os.F_OK):
|
||||
if 'install' in command.distribution.command_obj:
|
||||
# Prevent overwriting version created during install
|
||||
return
|
||||
locale_dir = os.path.join(command.build_base, 'mo')
|
||||
|
Loading…
Reference in New Issue
Block a user