#1045, disable the .py file installation when setting install_path=None

This commit is contained in:
Thomas Nagy 2011-09-26 02:37:05 +02:00
parent ce5241dc26
commit 41d7ab3aa6
1 changed files with 8 additions and 2 deletions

View File

@ -64,7 +64,10 @@ def process_py(self, node):
except: except:
return return
if not getattr(self, 'install_path', None): try:
if not self.install_path:
return
except AttributeError:
self.install_path = '${PYTHONDIR}' self.install_path = '${PYTHONDIR}'
# i wonder now why we wanted to do this after the build is over # i wonder now why we wanted to do this after the build is over
@ -136,7 +139,10 @@ def init_pyext(self):
Change the values of *cshlib_PATTERN* and *cxxshlib_PATTERN* to remove the Change the values of *cshlib_PATTERN* and *cxxshlib_PATTERN* to remove the
*lib* prefix from library names. *lib* prefix from library names.
""" """
if not getattr(self, 'install_path', None): try:
if not self.install_path:
return
except AttributeError:
self.install_path = '${PYTHONARCHDIR}' self.install_path = '${PYTHONARCHDIR}'
self.uselib = self.to_list(getattr(self, 'uselib', [])) self.uselib = self.to_list(getattr(self, 'uselib', []))
if not 'PYEXT' in self.uselib: if not 'PYEXT' in self.uselib: