How to build a source distribution without using setup.py file?

This is a somewhat controversial topic, and the answer for the moment is that there is no one single tool that everyone agrees is the “right way” to build source distributions, nor what that tool would be. You can see a long thread about it on the Python Packaging discourse. I hesitate to give too … Read more

The difference between opencv-python and opencv-contrib-python

As per PyPi documentation: There are four different packages (see options 1, 2, 3 and 4 below): Packages for standard desktop environments: Option 1 – Main modules package: pip install opencv-python Option 2 – Full package (contains both main modules and contrib/extra modules): pip install opencv-contrib-python (check contrib/extra modules listing from OpenCV documentation) Packages for … Read more

what does pip install actually do?

The tar.gz file is a source archive whereas the .whl file is a built distribution. Newer pip versions preferentially install built distributions, but will fall back to source archives if needed. You should always upload a source archive and provide built archives for the platforms your project is compatible with. In this case, our example … Read more

Using hyphen/dash in python repository name and package name

To answer your 1st point let me rephrase my answer to a different question. The biggest source of misunderstanding is that the word “package” is heavily overloaded. There are 4 different names in the game — the name of the repository, the name of the directory being used for development (the one that contains setup.py), … Read more

Preventing namespace collisions between private and pypi-based Python packages

It might not be the solution for you, but I tell what we do. Prefix the package names, and using namespaces (eg. company.product.tool). When we install our packages (including their in-house dependencies), we use a requirements.txt file including our PyPI URL. We run everything in container(s) and we install all public dependencies in them when … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)