BLD: bring back build_ext warning message cython is missing #2439
State: closed

#2439


Labels:

Comments:
Still does not give me a warning, here is more details from the build::

running build_ext
building 'pandas.index' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ipandas/src/klib -Ipandas/src -I/snfs2/HOME/abie/ENV_dismod/lib/python2.6/site-packages/numpy/core/include -I/usr/include/python2.6 -c pandas/index.c -o build/temp.linux-x86_64-2.6/pandas/index.o
gcc: pandas/index.c: No such file or directory
gcc: no input files
error: command 'gcc' failed with exit status 1

strange.

```
λ sudo ./setup.py clean; ./setup.py build_ext --inplace
running clean
running build_ext
Traceback (most recent call last):
  File "./setup.py", line 720, in <module>
    **setuptools_kwargs)
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "./setup.py", line 343, in build_extensions
    self.check_cython_extensions(self.extensions)
  File "./setup.py", line 340, in check_cython_extensions
    """ % src)
Exception: Cython-generated file 'pandas/index.c' not found.
                Cython is required to compile pandas from a development branch.
                Please install Cython or download a release package of pandas.
```

Python 2.6 vs 2.7?

From: y-p [mailto:notifications@github.com]
Sent: Tuesday, February 12, 2013 5:33 PM
To: pydata/pandas
Cc: Abraham Flaxman
Subject: Re: [pandas] BLD: bring back build_ext warning message cython is missing #2439 (#2860)

strange.

λ sudo ./setup.py clean; ./setup.py build_ext --inplace

running clean

running build_ext

Traceback (most recent call last):

  File "./setup.py", line 720, in <module>

```
**setuptools_kwargs)
```

  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup

```
dist.run_commands()
```

  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands

```
self.run_command(cmd)
```

  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command

```
cmd_obj.run()
```

  File "/usr/lib/python2.7/distutils/command/build_ext.py", line 339, in run

```
self.build_extensions()
```

  File "./setup.py", line 343, in build_extensions

```
self.check_cython_extensions(self.extensions)
```

  File "./setup.py", line 340, in check_cython_extensions

```
""" % src)
```

Exception: Cython-generated file 'pandas/index.c' not found.

```
            Cython is required to compile pandas from a development branch.

            Please install Cython or download a release package of pandas.
```

—
Reply to this email directly or view it on GitHubhttps://github.com/pydata/pandas/pull/2860#issuecomment-13470133.

nope.

```
λ sudo ./setup.py clean; ./setup.py build_ext --inplace
running clean
running build_ext
Traceback (most recent call last):
  File "./setup.py", line 720, in <module>
    **setuptools_kwargs)
  File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.6/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "./setup.py", line 343, in build_extensions
    self.check_cython_extensions(self.extensions)
  File "./setup.py", line 340, in check_cython_extensions
    """ % src)
Exception: Cython-generated file 'pandas/index.c' not found.
                Cython is required to compile pandas from a development branch.
                Please install Cython or download a release package of pandas.
```

```
```

merged.