Update py-xdot to use python_purelib #31616 (#31628)

Issue discussed in https://github.com/spack/spack/issues/31616
This commit is contained in:
Servesh Muralidharan 2022-07-18 14:56:19 -05:00 committed by GitHub
parent 5c59e9746a
commit 918637b943
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ def post_install(self):
join_path(spec['gdk-pixbuf'].prefix.lib, 'girepository-1.0'),
join_path(spec['gtkplus'].prefix.lib, 'girepository-1.0'),
join_path(spec['harfbuzz'].prefix.lib, 'girepository-1.0'))
dst = join_path(python_platlib, 'xdot', '__init__.py')
dst = join_path(python_purelib, 'xdot', '__init__.py')
filter_file("import sys",
"import sys\nimport os\nos.environ['GI_TYPELIB_PATH']" +
" = '%s'" % repo_paths, dst)