Skip to content

Commit

Permalink
Fix python install_dir for compatiblity with debian packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Oct 20, 2023
1 parent f26ad53 commit b32843c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/config/install_dir
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ if len(sys.argv) != 2:
sys.exit(1)

prefix = sys.argv[1]
libdir = os.path.join(prefix, "lib", "python{}.{}".format(sys.version_info.major, sys.version_info.minor))

for dir in site.getsitepackages():
if dir.startswith(libdir):
print(dir)
sys.exit(0)

libdir = os.path.join(prefix, "lib")

for dir in site.getsitepackages():
Expand Down

0 comments on commit b32843c

Please sign in to comment.