-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Use CMake for Build System #47380
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
Closed
Closed
Use CMake for Build System #47380
Changes from 64 commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
67e0d51
initial cmake setup
WillAyd 08ae817
easy conversions
WillAyd b483dc6
tslibs
WillAyd 5f36730
full build
WillAyd 8408b07
build json
WillAyd 3a949d9
ignore cmake generated files
WillAyd b697755
public linkage
WillAyd ad43a31
remove unneeded library links
WillAyd d41af1e
PUBLIC cmake linkage
WillAyd 3c6dd10
Merge branch 'main' into cmake-build
WillAyd 4eab4a2
build system
WillAyd 02b48fe
cleaned up setup
WillAyd b447b86
restored pandas makefile
WillAyd 64a9cbf
inline cythonization
WillAyd a2dfd3e
python suffix
WillAyd 40d18f9
correct min version
WillAyd d1c2aef
some progress
WillAyd 9753009
better dependencies
WillAyd 42e9b6d
optimize template generation
WillAyd 9d2f250
generation script
WillAyd 8f2a49a
checkpoint
WillAyd 933d5b0
renamed json to ujson to avoid stdlib conflicts
WillAyd fa25fe1
added missing join build
WillAyd 496c015
Working build
WillAyd 27fbd0a
used detected python executable
WillAyd abdd163
cmake-format usage
WillAyd 3e714e1
CI updates
WillAyd 0dec991
spaces not tabs
WillAyd 40973fc
removed setup completely
WillAyd 2881bbc
remove pep-517 exclusion
WillAyd 5181d99
added python link options
WillAyd 73162a0
removed public linkage
WillAyd 9f0dc3a
LINK_LIBRARIES for macOS
WillAyd 0983ef7
apple compat
WillAyd 3328dd6
fixed sas import
WillAyd 3e973bb
fixed macOS / linux lib names
WillAyd a1f41fc
implemented project version
WillAyd 06ed345
removed failing build element
WillAyd dd319b8
windows builds
WillAyd 46848ff
code checks
WillAyd 739f2cb
script import fixes
WillAyd 659016a
isort fixup
WillAyd 94342e6
Merge remote-tracking branch 'upstream/main' into cmake-build
WillAyd c8ac167
docker fixups
WillAyd ca4d6a0
more docker
WillAyd dc5ff2d
Use Python_add_library
WillAyd 73b0962
fix 32bit docker image
WillAyd 421657f
reimplemented windows settings
WillAyd 0ccf5bc
try version fix for dev Docker env
WillAyd 9cf9d8d
windows / docker fixes
WillAyd acdccf9
VERBOSE build
WillAyd 7310bf0
windows support
WillAyd 64a2bf1
test fixes / compat
WillAyd 357fe17
cmake via pip
WillAyd fdc54c4
added back setuptools for sdist and bdist_wheel creation
WillAyd 3bd83d1
removed verbose build
WillAyd f095255
documentation cleanups
WillAyd dee3e6f
isort setup.py
WillAyd 55a0a3f
comment cleanup
WillAyd ffb1f3d
cmake-format all files
WillAyd d27fe22
sdist test fix
WillAyd c1c463b
updated MANFIEST
WillAyd 73f2e94
config updates
WillAyd fde002a
remove cmake from install_requires
WillAyd d43a292
pep517 build backend
WillAyd 59d0cf2
Merge remote-tracking branch 'upstream/main' into cmake-build
WillAyd b1e6be8
revert sdist ci changes
WillAyd 75dfb3d
Merge remote-tracking branch 'upstream/main' into cmake-build
WillAyd d6592dc
removed errant global-exclude of sos
WillAyd 1155787
code check
WillAyd c57200c
reverted Dockerfile hacks
WillAyd d62f894
renamed typestub
WillAyd 3bba968
Merge remote-tracking branch 'upstream/main' into cmake-build
WillAyd 107112e
Merge remote-tracking branch 'upstream/main' into cmake-build
WillAyd ecef747
Merge remote-tracking branch 'upstream/main' into cmake-build
WillAyd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
cmake_minimum_required(VERSION 3.18) | ||
|
||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9") | ||
set(CMAKE_C_STANDARD 99) | ||
set(CMAKE_C_STANDARD_REQUIRED True) | ||
set(CMAKE_CXX_STANDARD 11) | ||
set(CMAKE_CXX_STANDARD_REQUIRED True) | ||
|
||
project(pandas) | ||
|
||
if(WIN32) | ||
if(NOT CMAKE_BUILD_TYPE) | ||
set(CMAKE_BUILD_TYPE | ||
Release | ||
CACHE STRING "Build type" FORCE) | ||
endif() | ||
find_package(Python3 REQUIRED COMPONENTS Interpreter Development NumPy) | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE "") | ||
link_directories(${Python3_LIBRARY_DIRS}) | ||
else() | ||
# we only choose Development.Module to support virtual environments where | ||
# libpython may not be available see | ||
# https://github.com/pypa/manylinux/issues/484 | ||
find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module NumPy) | ||
endif() | ||
|
||
add_compile_definitions(NPY_NO_DEPRECATED_API=0) | ||
add_subdirectory("pandas/_libs") | ||
add_subdirectory("pandas/io/sas") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 is temporary. There is a gap with this Dockerfile currently where it clones the main repo, but obviously none of the CMake stuff is in main