Re: [Distutils] Unable to build language-check
Hi Erik, I'm not able to build my project using setuptools, it fails to install language-check library, see my setup.py below. -- setup( name='name', version='0.0.1', description=' TA', long_description=DESCRIPTION, license='Proprietary License', author='', author_email='', packages=find_packages(), install_requires=[ "language-check==0.7.5", "3to2==1.1.1", ], While executing *python setup.py install*, the language-check dependency is not getting resolved. Is there any workaround for this...? Thanks Sijo Jose On Thu, Jan 14, 2016 at 2:24 AM, Erik Bray wrote: > 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 > -- *Regards* *Sijo Jose* ___ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] Unable to build language-check
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
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
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