BLD: pin cython language level to '2' by tacaswell · Pull Request #25145 · pandas-dev/pandas (original) (raw)
pandas master + cython master:
(bleeding) ✘ ~/source/other_source/pandas [master {pandas/master}|✔ ]
jupiter@17:48 ➤ pip install -ve .
Created temporary directory: /tmp/pip-ephem-wheel-cache-xszq9dms
Created temporary directory: /tmp/pip-req-tracker-ecjmim3m
Created requirements tracker '/tmp/pip-req-tracker-ecjmim3m'
Created temporary directory: /tmp/pip-install-f_hm_b2w
Obtaining file:///home/tcaswell/source/other_source/pandas
Added file:///home/tcaswell/source/other_source/pandas to build tracker '/tmp/pip-req-tracker-ecjmim3m'
Running setup.py (path:/home/tcaswell/source/other_source/pandas/setup.py) egg_info for package from file:///home/tcaswell/source/other_source/pandas
Running command python setup.py egg_info
/home/tcaswell/.virtualenvs/bleeding/lib/python3.8/site-packages/Cython/Compiler/Main.py:366: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/tcaswell/source/other_source/pandas/pandas/_libs/algos.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
/home/tcaswell/.virtualenvs/bleeding/lib/python3.8/site-packages/Cython/Compiler/Main.py:366: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/tcaswell/source/other_source/pandas/pandas/_libs/groupby.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
Error compiling Cython file:
------------------------------------------------------------
...
a = tmp
n -= na_count
if n % 2:
result = kth_smallest_c( a, n / 2, n)
^
------------------------------------------------------------
pandas/_libs/groupby.pyx:59:38: Cannot assign type 'double' to 'Py_ssize_t'
Error compiling Cython file:
------------------------------------------------------------
...
n -= na_count
if n % 2:
result = kth_smallest_c( a, n / 2, n)
else:
result = (kth_smallest_c(a, n / 2, n) +
^
------------------------------------------------------------
pandas/_libs/groupby.pyx:61:38: Cannot assign type 'double' to 'Py_ssize_t'
Error compiling Cython file:
------------------------------------------------------------
...
if n % 2:
result = kth_smallest_c( a, n / 2, n)
else:
result = (kth_smallest_c(a, n / 2, n) +
kth_smallest_c(a, n / 2 - 1, n)) / 2
^
------------------------------------------------------------
pandas/_libs/groupby.pyx:62:42: Cannot assign type 'double' to 'Py_ssize_t'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/tcaswell/source/other_source/pandas/setup.py", line 737, in <module>
ext_modules=maybe_cythonize(extensions, compiler_directives=directives),
File "/home/tcaswell/source/other_source/pandas/setup.py", line 489, in maybe_cythonize
return cythonize(extensions, *args, **kwargs)
File "/home/tcaswell/.virtualenvs/bleeding/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1091, in cythonize
cythonize_one(*args)
File "/home/tcaswell/.virtualenvs/bleeding/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1214, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: pandas/_libs/groupby.pyx
Compiling pandas/_libs/algos.pyx because it changed.
Compiling pandas/_libs/groupby.pyx because it changed.
Compiling pandas/_libs/hashing.pyx because it changed.
Compiling pandas/_libs/hashtable.pyx because it changed.
Compiling pandas/_libs/index.pyx because it changed.
Compiling pandas/_libs/indexing.pyx because it changed.
Compiling pandas/_libs/internals.pyx because it changed.
Compiling pandas/_libs/interval.pyx because it changed.
Compiling pandas/_libs/join.pyx because it changed.
Compiling pandas/_libs/lib.pyx because it changed.
Compiling pandas/_libs/missing.pyx because it changed.
Compiling pandas/_libs/parsers.pyx because it changed.
Compiling pandas/_libs/reduction.pyx because it changed.
Compiling pandas/_libs/ops.pyx because it changed.
Compiling pandas/_libs/properties.pyx because it changed.
Compiling pandas/_libs/reshape.pyx because it changed.
Compiling pandas/_libs/skiplist.pyx because it changed.
Compiling pandas/_libs/sparse.pyx because it changed.
Compiling pandas/_libs/tslib.pyx because it changed.
Compiling pandas/_libs/tslibs/ccalendar.pyx because it changed.
Compiling pandas/_libs/tslibs/conversion.pyx because it changed.
Compiling pandas/_libs/tslibs/fields.pyx because it changed.
Compiling pandas/_libs/tslibs/frequencies.pyx because it changed.
Compiling pandas/_libs/tslibs/nattype.pyx because it changed.
Compiling pandas/_libs/tslibs/np_datetime.pyx because it changed.
Compiling pandas/_libs/tslibs/offsets.pyx because it changed.
Compiling pandas/_libs/tslibs/parsing.pyx because it changed.
Compiling pandas/_libs/tslibs/period.pyx because it changed.
Compiling pandas/_libs/tslibs/resolution.pyx because it changed.
Compiling pandas/_libs/tslibs/strptime.pyx because it changed.
Compiling pandas/_libs/tslibs/timedeltas.pyx because it changed.
Compiling pandas/_libs/tslibs/timestamps.pyx because it changed.
Compiling pandas/_libs/tslibs/timezones.pyx because it changed.
Compiling pandas/_libs/testing.pyx because it changed.
Compiling pandas/_libs/window.pyx because it changed.
Compiling pandas/_libs/writers.pyx because it changed.
Compiling pandas/io/sas/sas.pyx because it changed.
Compiling pandas/io/msgpack/_packer.pyx because it changed.
Compiling pandas/io/msgpack/_unpacker.pyx because it changed.
[ 1/39] Cythonizing pandas/_libs/algos.pyx
[ 2/39] Cythonizing pandas/_libs/groupby.pyx
Cleaning up...
Removed file:///home/tcaswell/source/other_source/pandas from build tracker '/tmp/pip-req-tracker-ecjmim3m'
Removed build tracker '/tmp/pip-req-tracker-ecjmim3m'
Command "python setup.py egg_info" failed with error code 1 in /home/tcaswell/source/other_source/pandas/
Exception information:
Traceback (most recent call last):
File "/home/tcaswell/.virtualenvs/bleeding/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 176, in main
status = self.run(options, args)
File "/home/tcaswell/.virtualenvs/bleeding/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 315, in run
resolver.resolve(requirement_set)
File "/home/tcaswell/.virtualenvs/bleeding/lib/python3.8/site-packages/pip/_internal/resolve.py", line 131, in resolve
self._resolve_one(requirement_set, req)
File "/home/tcaswell/.virtualenvs/bleeding/lib/python3.8/site-packages/pip/_internal/resolve.py", line 294, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/home/tcaswell/.virtualenvs/bleeding/lib/python3.8/site-packages/pip/_internal/resolve.py", line 225, in _get_abstract_dist_for
return self.preparer.prepare_editable_requirement(
File "/home/tcaswell/.virtualenvs/bleeding/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 382, in prepare_editable_requirement
abstract_dist.prep_for_dist(finder, self.build_isolation)
File "/home/tcaswell/.virtualenvs/bleeding/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 158, in prep_for_dist
self.req.prepare_metadata()
File "/home/tcaswell/.virtualenvs/bleeding/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 536, in prepare_metadata
self.run_egg_info()
File "/home/tcaswell/.virtualenvs/bleeding/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 611, in run_egg_info
call_subprocess(
File "/home/tcaswell/.virtualenvs/bleeding/lib/python3.8/site-packages/pip/_internal/utils/misc.py", line 759, in call_subprocess
raise InstallationError(
pip._internal.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /home/tcaswell/source/other_source/pandas/