_scanner.c is in tarball, but not in pypi version
$ pip install meliae
Downloading/unpacking meliae
Running setup.py egg_info for package meliae
Installing collected packages: meliae
Running setup.py install for meliae
building 'meliae._scanner' extension
llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c meliae/_scanner.c -o build/temp.macosx-10.7-intel-2.7/meliae/_scanner.o
i686-apple-darwin11-llvm-gcc-4.2: meliae/_scanner.c: No such file or directory
i686-apple-darwin11-llvm-gcc-4.2: no input files
i686-apple-darwin11-llvm-gcc-4.2: meliae/_scanner.c: No such file or directory
i686-apple-darwin11-llvm-gcc-4.2: no input files
lipo: can't figure out the architecture type of: /var/folders/cm/1trqpkdd4_j74tstrvfyn8_80000gn/T//cc0cUA2G.out
error: command 'llvm-gcc-4.2' failed with exit status 1
Complete output from command /Users/rick/.virtualenvs/py2/bin/python -c "import setuptools;__file__='/Users/rick/.virtualenvs/py2/build/meliae/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/cm/1trqpkdd4_j74tstrvfyn8_80000gn/T/pip-v7UDgW-record/install-record.txt --install-headers /Users/rick/.virtualenvs/py2/bin/../include/site/python2.7:
running install
running build
running build_py
running build_ext
building 'meliae._scanner' extension
llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c meliae/_scanner.c -o build/temp.macosx-10.7-intel-2.7/meliae/_scanner.o
i686-apple-darwin11-llvm-gcc-4.2: meliae/_scanner.c: No such file or directory
i686-apple-darwin11-llvm-gcc-4.2: no input files
i686-apple-darwin11-llvm-gcc-4.2: meliae/_scanner.c: No such file or directory
i686-apple-darwin11-llvm-gcc-4.2: no input files
lipo: can't figure out the architecture type of: /var/folders/cm/1trqpkdd4_j74tstrvfyn8_80000gn/T//cc0cUA2G.out
error: command 'llvm-gcc-4.2' failed with exit status 1
----------------------------------------
Command /Users/rick/.virtualenvs/py2/bin/python -c "import setuptools;__file__='/Users/rick/.virtualenvs/py2/build/meliae/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/cm/1trqpkdd4_j74tstrvfyn8_80000gn/T/pip-v7UDgW-record/install-record.txt --install-headers /Users/rick/.virtualenvs/py2/bin/../include/site/python2.7 failed with error code 1
Strangely, for me it installs successfully only out of a virtualenv. These are the truncated results for me:
Under a virtualenv:
(meliae) diogo@diogo- arch-desktop- home:~/ Envs/meliae$ pip install --upgrade --force meliae unpacking meliae
Downloading/
Downloading meliae-0.4.0.tar.gz (64Kb): 64Kb downloaded
Running setup.py egg_info for package meliae
Installing collected packages: meliae aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param= ssp-buffer- size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param= ssp-buffer- size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/ include/ python2. 7 -c meliae/_scanner.c -o build/temp. linux-x86_ 64-2.7/ meliae/ _scanner. o Envs/meliae/ bin/python2 -c "import setuptools; __file_ _='/home/ diogo/Envs/ meliae/ build/meliae/ setup.py' ;exec(compile( open(__ file__) .read() .replace( '\r\n', '\n'), __file__, 'exec'))" install --single- version- externally- managed --record /tmp/pip- Iqyl6R- record/ install- record. txt --install-headers /home/diogo/ Envs/meliae/ include/ site/python2. 7:
Running setup.py install for meliae
building 'meliae._scanner' extension
gcc -pthread -fno-strict-
gcc: error: meliae/_scanner.c: Arquivo ou diretório não encontrado
gcc: fatal error: no input files
compilation terminated.
error: command 'gcc' failed with exit status 1
Complete output from command /home/diogo/
running install
But out of the virtualenv (global environment):
diogo@diogo- arch-desktop- home:~/ applications/ test/python/ debug$ sudo pip install --upgrade --force meliae unpacking meliae
Downloading/
Downloading meliae-0.4.0.tar.gz (64Kb): 64Kb downloaded
Running setup.py egg_info for package meliae
Installing collected packages: meliae aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param= ssp-buffer- size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param= ssp-buffer- size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/ include/ python2. 7 -c meliae/_scanner.c -o build/temp. linux-x86_ 64-2.7/ meliae/ _scanner. o _scanner. c: In function ‘__pyx_ f_6meliae_ 8_scanner_ _file_io_ callback’ : _scanner. c:587:9: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result [-Wunused-result] aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param= ssp-buffer- size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param= ssp-buffer- size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/ include/ python2. 7 -c meliae/ _scanner_ core.c -o build/temp. linux-x86_ 64-2.7/ meliae/ _scanner_ core.o --sort- common, --as-needed, -z,relro, --hash- style=gnu build/temp. linux-x86_ 64-2.7/ meliae/ _scanner. o build/temp. linux-x86_ 64-2.7/ meliae/ _scanner_ core.o -L/usr/lib -lpython2.7 -o build/lib. linux-x86_ 64-2.7/ meliae/ _scanner. ...
Found existing installation: meliae 0.4.0.final.0
Uninstalling meliae:
Successfully uninstalled meliae
Running setup.py install for meliae
cythoning meliae/_scanner.pyx to meliae/_scanner.c
building 'meliae._scanner' extension
gcc -pthread -fno-strict-
meliae/
meliae/
gcc -pthread -fno-strict-
gcc -pthread -shared -Wl,-O1,