vineet85 / chromium-compact-language-detector

Automatically exported from code.google.com/p/chromium-compact-language-detector
0 stars 0 forks source link

0.2 PyPI package doesn't include the sources #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. pip install chromium-compact-language-detector==0.2

What is the expected output? What do you see instead?
"The `cld` C++ library is absent from this system. Please install it."

What version of the product are you using? On what operating system?
Version 0.2

Please provide any additional information below.

This problem is mentioned in issue #13, but wasn't fixed.
Because of it, using 0.2 on Heroku isn't possible. 0.031415 works well, because 
it includes all the necessary source files.

Full pip output:
$ pip install chromium-compact-language-detector==0.2
Downloading/unpacking chromium-compact-language-detector==0.2
  Downloading chromium_compact_language_detector-0.2.tar.gz
  Running setup.py egg_info for package chromium-compact-language-detector
    `pkg-config --libs --cflags cld` returns in error:
    Package cld was not found in the pkg-config search path.
    Perhaps you should add the directory containing `cld.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'cld' found

    The `cld` C++ library is absent from this system. Please install it.
    Complete output from command python setup.py egg_info:
    `pkg-config --libs --cflags cld` returns in error:

Package cld was not found in the pkg-config search path.

Perhaps you should add the directory containing `cld.pc'

to the PKG_CONFIG_PATH environment variable

No package 'cld' found

The `cld` C++ library is absent from this system. Please install it.

Original issue reported on code.google.com by nicolas....@gmail.com on 21 Feb 2014 at 11:41

GoogleCodeExporter commented 9 years ago
With 0.2, you have to first install the CLD libs before installing the Python 
bindings.

But, you may want to upgrade to CLD2 (there are a number of improvements to the 
language detection; see 
http://blog.mikemccandless.com/2013/08/a-new-version-of-compact-language.html 
).  That version also requires first building CLD then building the Python 
bindings.

Original comment by luc...@mikemccandless.com on 24 Feb 2014 at 11:05

GoogleCodeExporter commented 9 years ago
Is there a reason for not including the source files in the PyPI package, 
though? This complicates things for a Heroku deployment, where it's not easy 
(I'm not sure if it's even possible) to install libs separately from pip 
packages.

Is there a PyPI package for cld2? I didn't see one.

Original comment by nicolas....@gmail.com on 24 Feb 2014 at 1:52

GoogleCodeExporter commented 9 years ago
Unfortunately, CLD2 and this project (Python bindings on top of CLD2) are now 
two separate projects.

CLD2 is here: https://code.google.com/p/cld2

Technically, it would be possible and likely not so hard to create a single tgz 
that includes sources for both CLD2 and these Python bindings (like I did 
originally in version 0.031415), but really since these are now separate 
projects I don't plan on doing that here.

Original comment by luc...@mikemccandless.com on 25 Feb 2014 at 10:34