[Distutils] heads-up on a plot to bring linux wheels to pypi

2016-01-13 Thread Nathaniel Smith
Hi all,

Just wanted give distutils-sig a heads-up that there seems to be some
momentum gathering around a plot to bring linux wheels to pypi:

  https://github.com/manylinux/manylinux

Basically the idea is to define a standard baseline linux environment
(available libraries + version numbers + ABI of these), give it a name
(for now, "manylinux"), and then provide tools to build wheels against
this environment, teach pip how to recognize that the system it's on
conforms to the environment, and then convince pypi to start accepting
wheels with this as a platform tag :-). And if we carefully define the
baseline environment based on the experiences of the popular
scientific python distros (Continuum's Anaconda + Enthought's Canopy)
we can be highly confident that essentially all desktop + server linux
distros will be compatible with these wheels.

This strategy is orthogonal to the more ambitious efforts to define an
interface between wheels and the platform package manager; they can
proceed in parallel and potentially complement each other. The goal
here is just to get linux up to feature parity with windows and osx.

Status:
- we have a draft policy
- there's a cool tool for scanning wheels and checking whether they
conform to the policy: https://github.com/manylinux/auditwheel
- there's a draft docker image to make it easy to build such wheels
(https://github.com/manylinux/manylinux/pull/2)

To do:
- bikeshed the name ("manylinux" was picked after about 2 minutes of
discussion so as to get started. maybe "genericlinux" would be better?
I dunno.)
- build some test wheels
- write a proper PEP
- convince pip and pypi maintainers that this is a good idea ;-)

-n

-- 
Nathaniel J. Smith -- http://vorpus.org
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] Unable to build language-check

2016-01-13 Thread Erik Bray
On Wed, Jan 13, 2016 at 9:30 AM, Sijo Jose  wrote:
> The language-check (https://pypi.python.org/pypi/language-check)library has
> the dependency of '3to2' in python 2.7,
> In a virtualenv it works fine with pip,that is
>
> pip install  3to2
> pip install language-check
>
>
> But its failing with easy_install in venv
>
> easy_install 3to2
> easy_install language-check (It fails)
>
> Due to this I'm not able to build my project using setuptools.

After trying it myself and looking at the resulting traceback, I see
what's going on here.

language-check performs some extensive shenanigans to run 3to2 on its
code, and somewhere along the line it assumes that 3to2 is installed
in a directory.  However when you install it with easy_install, it is
installed as an egg by default.  And since it is marked zip-safe it's
installed as a zipped egg file instead of a directory.

My recommendation for installing your package is to run `pip install
.`, rather than `./setup.py install`, which there is a movement to get
away from.  Only installing with pip will get you out of a lot of
trouble you might run into with easy_install.

If you *must* use easy_install run it with -Z, at least when
installing 3to2, to make sure it's installed unzipped.  You might also
raise the issue with the developers of language-check since this is a
bug in their setup.py.

Best,
Erik
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] Unable to build language-check

2016-01-13 Thread Erik Bray
On Wed, Jan 13, 2016 at 9:30 AM, Sijo Jose  wrote:
> The language-check (https://pypi.python.org/pypi/language-check)library has
> the dependency of '3to2' in python 2.7,
> In a virtualenv it works fine with pip,that is
>
> pip install  3to2
> pip install language-check
>
>
> But its failing with easy_install in venv
>
> easy_install 3to2
> easy_install language-check (It fails)
>
> Due to this I'm not able to build my project using setuptools.

Why do you need to install it with easy_install?  pip is the
recommended installer for Python packages.

Erik
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


[Distutils] Unable to build language-check

2016-01-13 Thread Sijo Jose
The language-check (https://pypi.python.org/pypi/language-check)library has
the dependency of '*3to2*' in *python 2.7*,
In a virtualenv it works fine with pip,that is

*pip install  3to2*
*pip install language-check*


But its failing with easy_install in venv

*easy_install 3to2*
*easy_install language-check* (It fails)

Due to this I'm not able to build my project using *setuptools*.

-- 
*Regards*
*Sijo Jose*
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig