[prev in list] [next in list] [prev in thread] [next in thread]
List: python-distutils-sig
Subject: Re: [Distutils] Unable to build language-check
From: Erik Bray <erik.m.bray () gmail ! com>
Date: 2016-01-14 5:46:58
Message-ID: CAOTD34bFNvpX43vBN2hLvctBngNKN_XH_HXgrpLERuaJbTwE3g () mail ! gmail ! com
[Download RAW message or body]
On Wed, Jan 13, 2016 at 9:30 AM, Sijo Jose <mailtosijojose@gmail.com> 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic