Skip to content

Commit 54f333a

Browse files
github-actions[bot]Create or Update Pull Request Actionkuelumbus
authored
🤖 Bump RDKit version to Release_2024_09_1 (#116)
* Set RDKit version to Release_2024_09_1 * 🤖 Bump RDKit version to Release_2024_03_6 (#113) * Set RDKit version to Release_2024_03_6 * Fix boost detection issue with case-sensetive * Add python3 directory hint to cmake * Improve python root path finding. * Typo * Improve Python version detection for win * Add system lib install path of python * typo * Improve finding python 3 on win * Improve python finding for windows * Bump cmake and setupt tools * Add missing comma * improve lib finding * oops * deactivate tmate action * bump cibuildweehl * print config vars * Fix library path for python on win * Try * enable debug mode * give more search pa * Fix path * path * Get windows paths * oops * Fix * fix * try * test * test * Enable debug * t * Fix * test * Verbose output for compilation * verbose * Try 10 * enable find debug * fix * Fix * Clean up an try ninja for windows * Remove ninja on windows --------- Co-authored-by: Create or Update Pull Request Action <create-or-update-pull-request@users.noreply.github.com> Co-authored-by: Christopher Kuenneth <christopher.kuenneth@gmail.com> * Enable Python 3.13 builds in GH actions and circle cci * fix finding python3.11.lib * Fix python 3.13 builds * enable debug for macos * Remove CIBW_ARCHS keyword * Update GithubAction python version. * Update cmake * Specify arm64 for cmake builds * Fix --------- Co-authored-by: Create or Update Pull Request Action <create-or-update-pull-request@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Christopher Kuenneth <christopher.kuenneth@gmail.com> Co-authored-by: Chris Kuenneth <44866753+kuelumbus@users.noreply.github.com>
1 parent 5ef9a75 commit 54f333a

File tree

5 files changed

+45
-45
lines changed

5 files changed

+45
-45
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ workflows:
5151
- linux-arm64-wheels:
5252
matrix:
5353
parameters:
54-
python-version: ["39", "310", "311", "312"]
54+
python-version: ["39", "310", "311", "312", "313"]
5555
# - osx-wheels:
5656
# matrix:
5757
# parameters:

.github/workflows/wheels.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
python: 312
4343
bitness: 64
4444
platform_id: win_amd64
45-
# - os: windows-2019
46-
# python: 313
47-
# bitness: 64
48-
# platform_id: win_amd64
45+
- os: windows-2019
46+
python: 313
47+
bitness: 64
48+
platform_id: win_amd64
4949

5050
# Linux 64 bit Intel: x86_64
5151
- os: ubuntu-latest
@@ -64,10 +64,10 @@ jobs:
6464
python: 312
6565
bitness: 64
6666
platform_id: manylinux_x86_64
67-
# - os: ubuntu-latest
68-
# python: 313
69-
# bitness: 64
70-
# platform_id: manylinux_x86_64
67+
- os: ubuntu-latest
68+
python: 313
69+
bitness: 64
70+
platform_id: manylinux_x86_64
7171

7272
# Linux 64 bit ARM: aarch64 (on Circle CI)
7373

@@ -88,10 +88,10 @@ jobs:
8888
bitness: 64
8989
python: 312
9090
platform_id: macosx_arm64
91-
# - os: macos-14
92-
# bitness: 64
93-
# python: 313
94-
# platform_id: macosx_arm64
91+
- os: macos-14
92+
bitness: 64
93+
python: 313
94+
platform_id: macosx_arm64
9595

9696
# MacOS 64 bit Intel: x86_64
9797
- os: macos-12
@@ -110,10 +110,10 @@ jobs:
110110
bitness: 64
111111
python: 312
112112
platform_id: macosx_x86_64
113-
# - os: macos-12
114-
# bitness: 64
115-
# python: 313
116-
# platform_id: macosx_x86_64
113+
- os: macos-12
114+
bitness: 64
115+
python: 313
116+
platform_id: macosx_x86_64
117117

118118
steps:
119119
- uses: actions/checkout@v4
@@ -126,7 +126,7 @@ jobs:
126126
- uses: actions/setup-python@v5
127127
name: Install Python
128128
with:
129-
python-version: '3.11'
129+
python-version: '3.13'
130130

131131
- name: Export GitHub Actions cache environment variables for vcpkg
132132
if: ${{ runner.os == 'Windows' }}
@@ -152,7 +152,6 @@ jobs:
152152
- name: Build wheels
153153
env:
154154
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
155-
CIBW_ARCHS: all
156155

157156
run: |
158157
if [ "$RUNNER_OS" == "Windows" ]; then

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ Please open an issue if you find something missing or not working as expected.
1818
![GitHub Repo stars](https://img.shields.io/github/stars/kuelumbus/rdkit-pypi?style=for-the-badge&logo=github)
1919
## Available Builds
2020

21-
| OS | Arch | Bit | Conditions | 3.8 | 3.9 | 3.10 | 3.11 | 3.12 | CI |
22-
| ------- | ------- | --- | --------------------------------------------------- | -------------- | --- | ---- | ---- | ---- | ----------------- |
23-
| Linux | intel | 64 | glibc >= 2.28 (e.g., Ubuntu 18.04+, CentOS 6+, ...) | last: 2024.3.5 | ✔️ | ✔️ | ✔️ | ✔️ | Github Actions |
24-
| Linux | aarch64 | 64 | glibc >= 2.28 (e.g., Raspberry Pi, ...) | last: 2024.3.5 | ✔️ | ✔️ | ✔️ | ✔️ | Circle CI |
25-
| macOS | intel | 64 | >= macOS 10.13 | last: 2024.3.5 | ✔️ | ✔️ | ✔️ | ✔️ | Github Actions |
26-
| macOS | armv8 | 64 | >= macOS 11, M1 hardware | last: 2024.3.5 | ✔️ | ✔️ | ✔️ | ✔️ | Github Actions |
27-
| Windows | intel | 64 | | last: 2024.3.5 | ✔️ | ✔️ | ✔️ | ✔️ | Github Actions |
21+
| OS | Arch | Bit | Conditions | 3.8 | 3.9 | 3.10 | 3.11 | 3.12 | 3.13 | CI |
22+
| ------- | ------- | --- | --------------------------------------------------- | -------------- | --- | ---- | ---- | ---- | ---- | -------------- |
23+
| Linux | intel | 64 | glibc >= 2.28 (e.g., Ubuntu 18.04+, CentOS 6+, ...) | last: 2024.3.5 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | Github Actions |
24+
| Linux | aarch64 | 64 | glibc >= 2.28 (e.g., Raspberry Pi, ...) | last: 2024.3.5 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | Circle CI |
25+
| macOS | intel | 64 | >= macOS 10.13 | last: 2024.3.5 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | Github Actions |
26+
| macOS | armv8 | 64 | >= macOS 11, M1 hardware | last: 2024.3.5 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | Github Actions |
27+
| Windows | intel | 64 | | last: 2024.3.5 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | Github Actions |
2828

2929
## Installation
3030

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
requires = [
33
"setuptools==75.2.0",
44
"wheel",
5-
"cmake == 3.30.4",
5+
"cmake == 3.31.1",
66
"numpy",
77
"conan == 1.64.0",
88
"ninja",

setup.py

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from setuptools.command.build_ext import build_ext as build_ext_orig
1313

1414
# RDKit version to build (tag from github repository)
15-
rdkit_tag = "Release_2024_03_6"
15+
rdkit_tag = "Release_2024_09_1"
1616

1717
with open("README.md", "r", encoding="utf-8") as fh:
1818
long_description = fh.read()
@@ -176,21 +176,6 @@ def replace_all(file, search_exp, replace_exp):
176176
'target_link_libraries(rdkit_py_base INTERFACE "boost::python${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR}" "boost::numpy${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR}")',
177177
)
178178

179-
# on windows, cmake is not configured to detect the python*.lib dynamic library
180-
#
181-
# replace_all(
182-
# "CMakeLists.txt",
183-
# 'target_link_libraries(rdkit_py_base INTERFACE ${Python3_LIBRARIES} )',
184-
# 'message("HERE")\n message(${Python3_LIBRARIES})\n target_link_libraries(rdkit_py_base INTERFACE ${Python3_LIBRARIES} )',
185-
# )
186-
187-
# on windows; bug in 2024_03_6
188-
replace_all(
189-
"CMakeLists.txt",
190-
'target_link_libraries(rdkit_py_base INTERFACE ${Python3_LIBRARY} )',
191-
'target_link_libraries(rdkit_py_base INTERFACE ${Python3_LIBRARIES} )',
192-
)
193-
194179
if "macosx" in os.environ["CIBW_BUILD"]:
195180
# Replace Cairo with cairo because conan uses lower case target names
196181
# only on MacOS cairo is installed using conan
@@ -205,6 +190,20 @@ def replace_all(file, search_exp, replace_exp):
205190
'target_link_libraries(MolDraw2D_static PUBLIC cairo::cairo)',
206191
)
207192

193+
# introduced in 2024_09_01 for compiling pubchem shape.
194+
replace_all(
195+
"External/pubchem_shape/Wrap/CMakeLists.txt",
196+
'find_package(Python3 COMPONENTS Interpreter Development NumPy REQUIRED)',
197+
'find_package(Python3 COMPONENTS Interpreter Development NumPy)',
198+
)
199+
200+
201+
202+
print("---- Conf vars", file=sys.stderr)
203+
print(sysconfig.get_paths(), file=sys.stderr)
204+
print(sysconfig.get_config_vars(), file=sys.stderr)
205+
print("---- Conf vars", file=sys.stderr)
206+
208207

209208

210209
print("---- Conf vars", file=sys.stderr)
@@ -288,10 +287,12 @@ def to_win_path(pt: Path):
288287
options += [
289288
"-DRDK_OPTIMIZE_POPCNT=OFF",
290289
# Otherwise, cmake tries to link the system freetype
291-
"-DFREETYPE_LIBRARY=/opt/homebrew/lib/libfreetype.dylib",
292-
"-DFREETYPE_INCLUDE_DIRS=/opt/homebrew/include",
290+
# "-DFREETYPE_LIBRARY=/opt/homebrew/lib/libfreetype.dylib",
291+
# "-DFREETYPE_INCLUDE_DIRS=/opt/homebrew/include",
293292
# Arm64 build start with development target 11.0
294293
f"-DCMAKE_OSX_DEPLOYMENT_TARGET={os.environ.get('MACOSX_DEPLOYMENT_TARGET', '11.0')}",
294+
f"-DCMAKE_OSX_ARCHITECTURES=arm64",
295+
f"-DCMAKE_VERBOSE_MAKEFILE=ON" # Increase verbosity
295296
]
296297

297298
if "linux" in sys.platform:

0 commit comments

Comments
 (0)