-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NameError: name 'tempita' is not defined when building extensions with old cython #28836
Comments
(By the way: my command above will fail anyway because of the missing cython, but my understanding is that, because of this bug, |
we bumped cython recently; conda update cython should be enough if you don’t have cython it actually would work |
Yep, sorry for not mentioning I had already solved my local problem. |
I suppose this is caused by #28374 when we now require cython for sdists. Before, we only called cythonize when |
I think (but I'm quite ignorant of how the Line 76 in bee17d5
... out of the |
I think that block could be simplified - the I generally think anything to simplify setup.py would be great. I would be hesitant to add more logic |
@toobaz I don't think that should be moved out of the else clause, as in theory you don't need tempita to run But I think @WillAyd is correct that the |
Right, it would need also a variable where we remember whether tempita is present, like for cython.
Again, I'm not an expert, but my understanding is that if you have |
tempita itself is not enough to compile cython file to C (tempita only generates cython files from the templates, not C files), so that use case doesn't sound possible to me. So I think it should be fine to just rely on tempita provided by cython? |
OK sorry, now I understand, and sure, checking ``tempita'' is useless. |
…ndexing-1row-df * upstream/master: (333 commits) CI: troubleshoot Web_and_Docs failing (pandas-dev#30534) WARN: Ignore NumbaPerformanceWarning in test suite (pandas-dev#30525) DEPR: camelCase in offsets, get_offset (pandas-dev#30340) PERF: implement scalar ops blockwise (pandas-dev#29853) DEPR: Remove Series.compress (pandas-dev#30514) ENH: Add numba engine for rolling apply (pandas-dev#30151) [ENH] Add to_markdown method (pandas-dev#30350) DEPR: Deprecate pandas.np module (pandas-dev#30386) ENH: Add ignore_index for df.drop_duplicates (pandas-dev#30405) BUG: The setting xrot=0 in DataFrame.hist() doesn't work with by and subplots pandas-dev#30288 (pandas-dev#30491) CI: Fix GBQ Tests (pandas-dev#30478) Bug groupby quantile listlike q and int columns (pandas-dev#30485) ENH: Add ignore_index for df.sort_values and series.sort_values (pandas-dev#30402) TYP: Typing hints in pandas/io/formats/{css,csvs}.py (pandas-dev#30398) BUG: raise on non-hashable Index name, closes pandas-dev#29069 (pandas-dev#30335) Replace "foo!r" to "repr(foo)" syntax pandas-dev#29886 (pandas-dev#30502) BUG: preserve EA dtype in transpose (pandas-dev#30091) BLD: add check to prevent tempita name error, clsoes pandas-dev#28836 (pandas-dev#30498) REF/TST: method-specific files for test_append (pandas-dev#30503) marked unused parameters (pandas-dev#30504) ...
Code Sample, a copy-pastable example if possible
Problem description
If cython is too old/missing, the nice error reporting of the setup.py do not work.
Until few minutes ago I had never heard about
tempita
, but my understanding is that it is required (used inbuild_ext.render_templates
) whilecython
is not:pandas/setup.py
Line 74 in bee17d5
Hence, whether the check for
tempita
is made should not depend on whethercython
is found: instead, this is what currently happens, given thattempita
is checked in theelse
clause of thetry...except
check ofcython
:pandas/setup.py
Line 76 in bee17d5
Notice that this means the above error pops out despite
tempita
being installed in my system.Expected Output
None
Output of
pd.show_versions()
Commit: bee17d5
The text was updated successfully, but these errors were encountered: