summaryrefslogtreecommitdiffstats
path: root/get_pylib.py
blob: 56253d589fe4cf8c339c51f9830d85e04014c650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/python3

# This file is used during the make process

import sysconfig

# Older versions of python don't have this scheme
# but produce the answer we expect with 'posix_prefix'
# Newer versions of python insert 'local' in the path unless we use rpm_prefix
SCHEME = 'rpm_prefix'

if not SCHEME in sysconfig.get_scheme_names():
    SCHEME = 'posix_prefix'

PYLIB = sysconfig.get_path('purelib', SCHEME)
print(PYLIB)