← Back to team overview

kicad-developers team mailing list archive

Re: CMake doesn't find the right PythonLibs on recent Ubuntus, workaround included

 

Most people who are paid to write python do not ever use
site-packages/dist-packages.  Most people who are paid to write python
don't use distribution-specific packages for their dependencies.

Using tools like pip and virtualenv, dependency wrangling is basically
non-existent, and different applications on your box don't clash with
each other.

You want to make a new project, and it needs flask, pillow, and sql-alchemy?

virtualenv myenv
source myenv/bin/activate
pip install flask pillow sql-alchemy

At this point, the newest versions of flask, pillow, and sql-alchemy
are installed inside myenv.  When you do source myenv/bin/activate,
the python binary you run knows about the packages inside of myenv,
and in fact, they *ignore* site-packages/dist-packages by default!

I think this is a real root cause of the issue of python distribution
packaging, because the folks who are paid to do this stuff don't care
about it.

Adam Wolf
Wayne and Layne, LLC

On Fri, Apr 12, 2013 at 2:21 PM, Dick Hollenbeck <dick@xxxxxxxxxxx> wrote:
> When doing Python a-mingw-us, and also looking at what the python package maintainers are
> doing for modern linux, I came away disappointed, both with python raw, and python on
> linux as far as packaging is concerned and where they park libraries.
>
>
> The problem with linux is that nobody wants to commit to a particular version of python.
> Too many whiners holding back the evolution to a modern python.  So you have to install
> about 3 versions of python to make everyone happy, and each comes with their own library
> storage strategy.
>
>
> The problem on Windows is choice of directory names, and much of those choices came from
> ..... who the hell knows.  Case sensitive names, yuck.
>
>
> I walked away thinking that python needs to be tamed, not obeyed.  The whole packaging
> arrangement does not have my respect in any case.
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp


Follow ups

References