-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
ARROW-17579: [Python] PYARROW_CXXFLAGS ignored? #14074
Conversation
@AlenkaF You might try this patch to fix the AppVeyor error: diff --git a/python/pyarrow/_compute.pyx b/python/pyarrow/_compute.pyx
index b9594d90e..2aa65e75c 100644
--- a/python/pyarrow/_compute.pyx
+++ b/python/pyarrow/_compute.pyx
@@ -2613,7 +2613,7 @@ def register_scalar_function(func, function_name, function_doc, in_types,
raise TypeError(
"in_types must be a dictionary of DataType")
- c_arity = CArity(num_args, func_spec.varargs)
+ c_arity = CArity(<int> num_args, func_spec.varargs)
if "summary" not in function_doc:
raise ValueError("Function doc must contain a summary") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
0eb2ad8
to
dad7c73
Compare
@pitrou I have added the suggestions and will merge this PR later today if there is no objection. Note: Travis issue has a JIRA already. |
Benchmark runs are scheduled for baseline = 81f3945 and contender = 9c628b7. 9c628b7 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
['Python', 'R'] benchmarks have high level of regressions. |
This PR adds: - `PYARROW_CXXFLAGS` variable to PyArrow C++ and Pyarrow cmake builds (both defined in `setup.py`) - a common flags section to `pyarrow/src/CMakeLists.txt` where `CXX_COMMON_FLAGS` and `PYARROW_CXXFLAGS` are added to the `CMAKE_CXX_FLAGS` variable. Other flags defined in Arrow C++ should be included in PyArrow C++ and PyArrow with `include(SetupCxxFlags)`. I am not sure if additional flags that are defined in PyArrow, see: https://github.com/apache/arrow/blob/43670af02f0913580fd20e26006fd550d6fdf2da/python/CMakeLists.txt#L134-L174 are needed in PyArrow C++ as they were not used when PyArrow C++ was included in Arrow C++? cc @pitrou Authored-by: Alenka Frim <[email protected]> Signed-off-by: Alenka Frim <[email protected]>
This PR adds: - `PYARROW_CXXFLAGS` variable to PyArrow C++ and Pyarrow cmake builds (both defined in `setup.py`) - a common flags section to `pyarrow/src/CMakeLists.txt` where `CXX_COMMON_FLAGS` and `PYARROW_CXXFLAGS` are added to the `CMAKE_CXX_FLAGS` variable. Other flags defined in Arrow C++ should be included in PyArrow C++ and PyArrow with `include(SetupCxxFlags)`. I am not sure if additional flags that are defined in PyArrow, see: https://github.com/apache/arrow/blob/43670af02f0913580fd20e26006fd550d6fdf2da/python/CMakeLists.txt#L134-L174 are needed in PyArrow C++ as they were not used when PyArrow C++ was included in Arrow C++? cc @pitrou Authored-by: Alenka Frim <[email protected]> Signed-off-by: Alenka Frim <[email protected]>
This PR adds:
PYARROW_CXXFLAGS
variable to PyArrow C++ and Pyarrow cmake builds (both defined insetup.py
)pyarrow/src/CMakeLists.txt
whereCXX_COMMON_FLAGS
andPYARROW_CXXFLAGS
are added to theCMAKE_CXX_FLAGS
variable.Other flags defined in Arrow C++ should be included in PyArrow C++ and PyArrow with
include(SetupCxxFlags)
.I am not sure if additional flags that are defined in PyArrow, see:
arrow/python/CMakeLists.txt
Lines 134 to 174 in 43670af
cc @pitrou