mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-05 01:53:01 +01:00
#1045, disable the .py file installation when setting install_path=None
This commit is contained in:
parent
ce5241dc26
commit
41d7ab3aa6
@ -64,7 +64,10 @@ def process_py(self, node):
|
||||
except:
|
||||
return
|
||||
|
||||
if not getattr(self, 'install_path', None):
|
||||
try:
|
||||
if not self.install_path:
|
||||
return
|
||||
except AttributeError:
|
||||
self.install_path = '${PYTHONDIR}'
|
||||
|
||||
# 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
|
||||
*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.uselib = self.to_list(getattr(self, 'uselib', []))
|
||||
if not 'PYEXT' in self.uselib:
|
||||
|
Loading…
Reference in New Issue
Block a user