Credentials in pip.conf for private PyPI

You could store credentials for Pip to use in ~/.netrc like this: machine pypi.example.com login johndoe password changeme Pip will use these credentials when accessing https://pypi.example.com but won’t log them. You must specify the index server separately (such as in pip.conf as in the question). Note that ~/.netrc must be owned by the user pip … Read more

‘pip setup.py bdist_wheel’ no longer builds forced non-pure wheels

I’ve just run into this issue myself with Python v2.7 and wheel v0.29.0 on Windows 7 x64, where I build a Python package with some pre-compiled extensions (complicated VisualStudio setup with SWIG and external DLLs). After examining the source code I have found that overriding Distribution.has_ext_modules works (automatically includes platform name and ABI tag): from … Read more

How to find “import name” of any package in Python?

Wheels I know this is an old question, but wheel packages have since been invented! Since a wheel is simply a zip file that gets extracted into the lib/site-packages directory, an examination of the contents of the wheel archive can give you the top level imports. >>> import zipfile >>> zf = zipfile.ZipFile(‘setuptools-35.0.2-py2.py3-none-any.whl’) >>> top_level … Read more