Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

pip install distributions fails #62

@stephentu

Description

@stephentu

I'm trying to install distributions via pip install distributions on OS X, and I get the following error (after a lot of spew):

distributions/lp/models/_bb.cpp:6342:42: error: expected the class name after '~' to name a destructor

  p->scores.distributions::VectorFloat::~VectorFloat();

                                         ^

5 warnings and 1 error generated.

error: command 'gcc' failed with exit status 1

My environment:

(x)stephentu@ibanez:~$ python --version
Python 2.7.7 :: Anaconda 2.0.1 (x86_64)
(x)stephentu@ibanez:~$ uname -a
Darwin ibanez 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
(x)stephentu@ibanez:~$ python -c 'import Cython; print Cython.__version__'
0.20.2

This error I believe is related to cython generator invalid C++ code for clang (gcc is OK with it). A simple fix I believe is to require cython>=0.20.2b1 when compiling with clang

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions