diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/py-protobuf/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-protobuf/package.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/py-protobuf/package.py b/var/spack/repos/builtin/packages/py-protobuf/package.py index bacad6f018..83ba3fd69c 100644 --- a/var/spack/repos/builtin/packages/py-protobuf/package.py +++ b/var/spack/repos/builtin/packages/py-protobuf/package.py @@ -86,6 +86,4 @@ class PyProtobuf(PythonPackage): def fix_import_error(self): if str(self.spec['python'].version.up_to(1)) == '2': touch = which('touch') - touch(self.prefix + '/' + - self.spec['python'].package.site_packages_dir + - '/google/__init__.py') + touch(join_path(python_platlib, 'google', '__init__.py')) |