In fact looking at /usr/lib/python3.4/distutils/sysconfig.py, it appears the fix is quite easy. In get_python_inc(), the variable `python_dir = python_dir = 'python' + get_python_version() + build_flags` is used to build the path. However, in get_python_lib(), "python3" is a hard-coded string: `return os.path.join(prefix, "lib", "python3", "dist-packages")`
This is a special case for the value of prefix if it's something like /usr/local.. Currently to get around this I am forced to provide a fake argument to `prefix` and then doing a string replace for /usr/local, which is just silly.
In fact looking at /usr/lib/ python3. 4/distutils/ sysconfig. py, it appears the fix is quite easy. In get_python_inc(), the variable `python_dir = python_dir = 'python' + get_python_ version( ) + build_flags` is used to build the path. However, in get_python_lib(), "python3" is a hard-coded string: `return os.path. join(prefix, "lib", "python3", "dist-packages")`
This is a special case for the value of prefix if it's something like /usr/local.. Currently to get around this I am forced to provide a fake argument to `prefix` and then doing a string replace for /usr/local, which is just silly.