-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix cmake build error when install under virtualenv #1777
Conversation
Thank you for your contribution and Welcome to our Open Source Community! To make sure your pull request is accepted successfully, we ask all our open source contributors to sign a Contributor License Agreement; having reviewed our contributor list, we require a CLA for the following people : (@shinny-chengzhi). In order to sign a CLA with FINOS, just submit a Pull Request with a simple change to this file (adding an empty line, or some random text at the bottom); this will trigger the EasyCLA bot, which will post a comment to the Pull Request stating whether all PR contributors are covered by FINOS CLA; if not covered, the bot will post instructions on how to sign the CLA. Thanks once again for your contribution. Let us work with you to make the CLA process quick, easy and efficient so we can move forward with reviewing and accepting your pull request. Feel free to email help@finos.org for any questions. |
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.
This won't work for manylinux builds, and this stuff is handled by the FindPython cmake modules.
It seems like the coding style check failed, and I'm not familiar with Lint Python. Could you shine any light on the error I think the culprit is the FindPythonLibs module which can't find include&lib location in my case. Here is my setup:
Even though I can run After applying this patch, I can finally install perspective in my environment. |
@shinny-chengzhi you can run black on the setup.py. One other thing, it looks like this may relate to a bug in CMake so you should check if you're able to build without this PR but with a newer Cmake version |
I tried building the latest CMake form source and the problem still preexist. Here is the log:
It's seem like this is a known bug: https://gitlab.kitware.com/cmake/cmake/-/issues/19525 |
python/perspective/setup.py
Outdated
@@ -176,7 +183,7 @@ def build_extension_cmake(self, ext): | |||
"-DCMAKE_TOOLCHAIN_FILE={}".format(vcpkg_toolchain_file) | |||
) | |||
|
|||
if sys.maxsize > 2 ** 32: | |||
if sys.maxsize > 2**32: |
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.
needs spaces around operator for linting
Thank you for your contribution and Welcome to our Open Source Community! To make sure your pull request is accepted successfully, we ask all our open source contributors to sign a Contributor License Agreement; having reviewed our contributor list, we require a CLA for the following people : (@shinny-chengzhi). In order to sign a CLA with FINOS, just submit a Pull Request with a simple change to this file (adding an empty line, or some random text at the bottom); this will trigger the EasyCLA bot, which will post a comment to the Pull Request stating whether all PR contributors are covered by FINOS CLA; if not covered, the bot will post instructions on how to sign the CLA. Thanks once again for your contribution. Let us work with you to make the CLA process quick, easy and efficient so we can move forward with reviewing and accepting your pull request. Feel free to email help@finos.org for any questions. |
Strange that when I run black it's constantly striping the space for me:
Is there any rules that need to be fed to black? Nevertheless, I have manually added these spaces back. |
…ENABLE_PYTHON condition.
I've create a new one #1779 Since github didn't support changing source branch for PR. |
CMake's
FindPythonLibs
is not working very well under virtualenv. We need to setPYTHON_LIBRARY
andPYTHON_INCLUDE_DIR
to help CMake locate the relevant directories.