Fix error raising during install with Python 3 (#6894)
* Fix error raising during install with Python 3 * Fix env_path too
This commit is contained in:
parent
32a78eae73
commit
f721fb3e4c
@ -820,11 +820,17 @@ def stage(self, stage):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def env_path(self):
|
def env_path(self):
|
||||||
return os.path.join(self.stage.source_path, 'spack-build.env')
|
if self.stage.source_path is None:
|
||||||
|
return None
|
||||||
|
else:
|
||||||
|
return os.path.join(self.stage.source_path, 'spack-build.env')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def log_path(self):
|
def log_path(self):
|
||||||
return os.path.join(self.stage.source_path, 'spack-build.out')
|
if self.stage.source_path is None:
|
||||||
|
return None
|
||||||
|
else:
|
||||||
|
return os.path.join(self.stage.source_path, 'spack-build.out')
|
||||||
|
|
||||||
def _make_fetcher(self):
|
def _make_fetcher(self):
|
||||||
# Construct a composite fetcher that always contains at least
|
# Construct a composite fetcher that always contains at least
|
||||||
|
Loading…
Reference in New Issue
Block a user