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

Compile Cairo from scratch for all Linux builds #33

Merged
merged 4 commits into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,15 @@ test-command = "pytest --exitfirst --verbose --failed-first {package}/tests"
before-all = [
# Has eigen3-devel.aarch64
"yum install -y epel-release",
"yum install -y wget freetype-devel zlib-devel libpng12-devel pixman-devel eigen3-devel cairo-devel",
"yum install -y wget freetype-devel libpng12-devel pixman-devel zlib-devel eigen3-devel",
# cairo-devel from the centos repo does not work, build here
"wget https://www.cairographics.org/snapshots/cairo-1.15.14.tar.xz --no-check-certificate",
"tar xvf cairo-*",
"cd cairo-*",
"./configure",
"make -j 20",
"make install",
"cd ..",
]

repair-wheel-command = [
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def to_win_path(pt: Path):

setup(
name="rdkit-pypi",
version=rdkit_tag.replace("Release_", "").replace("_", "."),
version=rdkit_tag.replace("Release_", "").replace("_", ".") + ".1",
description="A collection of chemoinformatics and machine-learning software written in C++ and Python",
author="Christopher Kuenneth",
author_email="[email protected]",
Expand Down
5 changes: 5 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ def test_data_dir_and_chemical_features():
m = Chem.MolFromSmiles("OCc1ccccc1CN")
feats = factory.GetFeaturesForMol(m)
assert len(feats) == 8


def test_rdkit_chem_draw_import():
# This segfaults if the compiled cairo version from centos is used
from rdkit.Chem.Draw import ReactionToImage