Skip to content
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
32 changes: 23 additions & 9 deletions deps/pypi-dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
"name": "python3-meson-python",
"buildsystem": "simple",
"build-commands": [
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"meson-python\" --no-build-isolation"
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"meson-python>=0.15.0,<0.16.0\" --no-build-isolation"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/7d/ec/40c0ddd29ef4daa6689a2b9c5ced47d5b58fa54ae149b19e9a97f4979c8c/meson_python-0.17.1-py3-none-any.whl",
"sha256": "30a75c52578ef14aff8392677b09c39346e0a24d2b2c6204b8ed30583c11269c"
"url": "https://files.pythonhosted.org/packages/1f/60/b10b11ab470a690d5777310d6cfd1c9bdbbb0a1313a78c34a1e82e0b9d27/meson_python-0.15.0-py3-none-any.whl",
"sha256": "3ae38253ff02b2e947a05e362a2eaf5a9a09d133c5666b4123399ee5fbf2e591"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl",
"sha256": "09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759"
"url": "https://files.pythonhosted.org/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl",
"sha256": "29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484"
},
{
"type": "file",
Expand All @@ -50,16 +50,30 @@
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/8e/9e/dadc3831f40e22c1b3925f07894646ada7906ef5b48db5c5eb2b03ca9faa/nanobind-2.5.0-py3-none-any.whl",
"sha256": "e1e5c816e5d10f0b252d82ba7f769f0f6679f5e043cf406aec3d9e184bf2a60d"
"url": "https://files.pythonhosted.org/packages/96/14/989883082b395146120d34ca7e484a2b24cb73b0e428576a3a4249bd4082/nanobind-2.7.0-py3-none-any.whl",
"sha256": "73b12d0e751d140d6c1bf4b215e18818a8debfdb374f08dc3776ad208d808e74"
}
]
},
{
"name": "python3-Cython",
"buildsystem": "simple",
"build-commands": [
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"cython==3.0.12\" --ignore-installed --no-build-isolation"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/5a/25/886e197c97a4b8e254173002cdc141441e878ff29aaa7d9ba560cd6e4866/cython-3.0.12.tar.gz",
"sha256": "b988bb297ce76c671e28c97d017b95411010f7c77fa6623dd0bb47eed1aee1bc"
}
]
},
{
"name": "python3-numpy",
"buildsystem": "simple",
"build-commands": [
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"numpy==1.26.4\" --no-build-isolation"
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"numpy==1.26.4\" --ignore-installed --no-build-isolation"
],
"sources": [
{
Expand All @@ -70,4 +84,4 @@
]
}
]
}
}
3 changes: 2 additions & 1 deletion deps/pypi-dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash

./flatpak-builder-tools/pip/flatpak-pip-generator --runtime='org.gnome.Sdk//48' --requirements-file='requirements.txt' --output pypi-dependencies
# Cython version corresponding to the specified numpy version must be manually added to pypi-dependencies.json afterwards
./flatpak-builder-tools/pip/flatpak-pip-generator --runtime='org.gnome.Sdk//48' --requirements-file='requirements.txt' --output=pypi-dependencies --ignore-installed=numpy
4 changes: 1 addition & 3 deletions deps/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
mako
markdown
markupsafe
meson-python
meson-python>=0.15.0,<0.16.0
nanobind
numpy==1.26.4
39 changes: 20 additions & 19 deletions io.github.pemsley.coot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,26 @@ cleanup:
- "*.a"

modules:
- name: openblas
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DUSE_OPENMP=ON
- -DNUM_THREADS=64
- -DNO_SVE=ON
- -DBUILD_SHARED_LIBS=ON
- -DDYNAMIC_ARCH=ON
build-options:
cflags: "-fPIC -O3"
post-install:
- ln -s /app/lib/libopenblas.so /app/lib/libblas.so
- ln -s /app/lib/libopenblas.so /app/lib/liblapack.so
sources:
- type: git
url: https://github.com/OpenMathLib/OpenBLAS.git
tag: v0.3.28

# markupsafe, meson-python, nanobind, numpy
- deps/pypi-dependencies.json

- name: gemmi
Expand Down Expand Up @@ -184,25 +204,6 @@ modules:
url: https://github.com/g-truc/glm/archive/refs/tags/1.0.1.tar.gz
sha256: 9f3174561fd26904b23f0db5e560971cbf9b3cbda0b280f04d5c379d03bf234c

- name: openblas
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DUSE_OPENMP=ON
- -DNUM_THREADS=64
- -DNO_SVE=ON
- -DBUILD_SHARED_LIBS=ON
- -DDYNAMIC_ARCH=ON
build-options:
cflags: "-fPIC -O3"
post-install:
- ln -s /app/lib/libopenblas.so /app/lib/libblas.so
- ln -s /app/lib/libopenblas.so /app/lib/liblapack.so
sources:
- type: archive
url: https://github.com/OpenMathLib/OpenBLAS/archive/refs/tags/v0.3.28.tar.gz
sha256: f1003466ad074e9b0c8d421a204121100b0751c96fc6fcf3d1456bd12f8a00a1

- name: bdw-gc
buildsystem: autotools
config-opts:
Expand Down