Skip to content
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

BLD: Build shared c dependencies as a library #47081

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

lithomas1
Copy link
Member

@lithomas1 lithomas1 commented May 21, 2022

  • closes #30873 (Replace xxxx with the Github issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

Does anyone else want to test this? I can only test with -j4 on my old 2-core i3.

@lithomas1 lithomas1 marked this pull request as ready for review May 21, 2022
@jreback jreback added the Build label May 21, 2022
@@ -16,5 +16,4 @@ runs:
python -m pip install -e . --no-build-isolation --no-use-pep517 --no-index
shell: bash -el {0}
env:
# Cannot use parallel compilation on Windows, see https://github.com/pandas-dev/pandas/issues/30873
N_JOBS: ${{ runner.os == 'Windows' && 1 || 2 }}
N_JOBS: 4
Copy link
Member

@mroeschke mroeschke May 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might still be worth aligning this with the number of core on the GH hosted runners (2 Window/Linux, 3 MacOS): https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources=

@jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented May 23, 2022

Does this affect build size or speed or inlining or ...?

setup.py Outdated Show resolved Hide resolved
@Dr-Irv
Copy link
Contributor

@Dr-Irv Dr-Irv commented May 23, 2022

I like this PR, and want to try it out, but my laptop where I do 8-core builds on Windows that always fails is out of commission for a week or so. Once I get that back, I will give it a try and let you know the outcome.

setup.py Outdated
],
"include_dirs": [
"pandas/_libs/tslibs/src/datetime",
sysconfig.get_path("include"),
Copy link
Member

@WillAyd WillAyd May 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need these get_path("include") calls? I think the compiler should handle that natively

Copy link
Member Author

@lithomas1 lithomas1 May 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason, the compiler was not able to find Python.h without this.

setup.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants