pypi version of meliae doesn't build: missing _scanner.c

Bug #953535 reported by Rick Yazwinski
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Meliae
New
Undecided
Unassigned

Bug Description

_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

Revision history for this message
Diogo Baeder (diogobaeder) wrote :
Download full text (5.0 KiB)

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
Downloading/unpacking meliae
  Downloading meliae-0.4.0.tar.gz (64Kb): 64Kb downloaded
  Running setup.py egg_info for package meliae

Installing collected packages: meliae
  Running setup.py install for meliae
    building 'meliae._scanner' extension
    gcc -pthread -fno-strict-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
    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/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 install

But out of the virtualenv (global environment):

diogo@diogo-arch-desktop-home:~/applications/test/python/debug$ sudo pip install --upgrade --force meliae
Downloading/unpacking meliae
  Downloading meliae-0.4.0.tar.gz (64Kb): 64Kb downloaded
  Running setup.py egg_info for package meliae

Installing collected packages: meliae
  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-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
    meliae/_scanner.c: In function ‘__pyx_f_6meliae_8_scanner__file_io_callback’:
    meliae/_scanner.c:587:9: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result [-Wunused-result]
    gcc -pthread -fno-strict-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
    gcc -pthread -shared -Wl,-O1,--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....

Read more...

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 953535] Re: pypi version of meliae doesn't build: missing _scanner.c

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 6/11/2012 9:00 AM, Diogo Baeder wrote:
> Strangely, for me it installs successfully only out of a
> virtualenv. These are the truncated results for me:
>
>

The original setuptools doesn't recognize 'cython' as a module that
can convert .pyx files into .c files. If you install both cython and
pyrex, or you use Distribute instead of setuptools, you'll be able to
compile.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/YiysACgkQJdeBCYSNAAM26gCfeiGYZ6JneE+BkxLWIl9nWh54
Qv0An19jMGpV3x3Wdq9bLHdz89FN2qYH
=uQPZ
-----END PGP SIGNATURE-----

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.