| 1 | #!/usr/bin/python3 |
| 2 | |
| 3 | # This file is used during the make process |
| 4 | |
| 5 | import sysconfig |
| 6 | |
| 7 | # Older versions of python don't have this scheme |
| 8 | # but produce the answer we expect with 'posix_prefix' |
| 9 | # Newer versions of python insert 'local' in the path unless we use rpm_prefix |
| 10 | SCHEME = 'rpm_prefix' |
| 11 | |
| 12 | if not SCHEME in sysconfig.get_scheme_names(): |
| 13 | SCHEME = 'posix_prefix' |
| 14 | |
| 15 | PYLIB = sysconfig.get_path('purelib', SCHEME) |
| 16 | print(PYLIB) |