This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, xiang.zhang
Date 2017-09-16.13:51:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505569875.51.0.291542652552.issue31440@psf.upfronthosting.co.za>
In-reply-to
Content
See site module, especially site._get_path()

# Same to sysconfig.get_path('purelib', os.name+'_user')
def _get_path(userbase):
    version = sys.version_info

    if os.name == 'nt':
        return f'{userbase}\\Python{version[0]}{version[1]}\\site-packages'

    if sys.platform == 'darwin' and sys._framework:
        return f'{userbase}/lib/python/site-packages'

    return f'{userbase}/lib/python{version[0]}.{version[1]}/site-packages'
History
Date User Action Args
2017-09-16 13:51:15christian.heimessetrecipients: + christian.heimes, xiang.zhang
2017-09-16 13:51:15christian.heimessetmessageid: <1505569875.51.0.291542652552.issue31440@psf.upfronthosting.co.za>
2017-09-16 13:51:15christian.heimeslinkissue31440 messages
2017-09-16 13:51:15christian.heimescreate