Skip to content

Commit 419c77e

Browse files
committed
Update documentation and skip free threading
1 parent b36d2b1 commit 419c77e

File tree

6 files changed

+12
-18
lines changed

6 files changed

+12
-18
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
env:
6868
CIBW_BUILD_FRONTEND: "build[uv]"
6969
CIBW_BUILD: "${{ matrix.build }}${{ matrix.python }}*"
70+
CIBW_SKIP: "*t-*"
7071
CIBW_ARCHS: ${{ matrix.arch }}
7172
CIBW_TEST_COMMAND: >
7273
uv run python -c "import sys; import pymoo; print(pymoo); from pymoo.functions import is_compiled; sys.exit(0 if is_compiled() else 42)"

docs/source/_static/css/custom.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ button[title*="theme"],
1717
display: none !important;
1818
}
1919

20+
/* Hide secondary sidebar toggle */
21+
.secondary-toggle,
22+
label.secondary-toggle {
23+
display: none !important;
24+
}
25+
2026
/* Keep original layout spacing since sidebar is still there as white space */
2127

2228
/* Make left sidebar wider (about 50% increase) without creating gaps */

docs/source/conf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@
6666
# HTML
6767
# ===========================================================================
6868

69-
# The theme to use for HTML and HTML Help pages. See the documentation for
70-
# a list of builtin themes.
7169
html_theme = 'sphinx_book_theme'
72-
# html_theme_path = ['.'] # Disabled custom theme
7370
html_logo = "_static/logo.svg"
7471
html_favicon = '_static/favicon.ico'
7572

docs/source/installation.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -151,17 +151,7 @@ Or execute the same command by
151151
python setup.py build_ext --inplace
152152
```
153153

154-
Or if Cython shall be used to create the `cpp` files from scratch use
155-
156-
```{raw-cell}
157-
:raw_mimetype: text/restructuredtext
158-
159-
.. code:: bash
160-
161-
python setup.py build_ext --inplace --cythonize
162-
```
163-
164-
All the commands above will show you detailed error messages if the compilation has failed.
154+
Both commands will show you detailed error messages if the compilation has failed.
165155

166156
+++
167157

@@ -193,7 +183,7 @@ Otherwise, create a new python environment with NumPy preinstalled and activate
193183
194184
.. code:: bash
195185
196-
conda create -n pymoo -y python==3.9 numpy
186+
conda create -n pymoo -y python==3.12 numpy
197187
conda activate pymoo
198188
pip install -U pymoo
199189
```

pymoo/visualization/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22

33
import numpy as np
4-
from pymoo.visualization.matplotlib import patches, PatchCollection, plt, animation
4+
from pymoo.visualization.matplotlib import matplotlib, patches, PatchCollection, plt, animation
55

66

77
def get_circle_points(n_points):
@@ -142,7 +142,7 @@ def plot(*args, show=True, labels=None, no_fill=False, **kwargs):
142142
if labels:
143143
plt.legend()
144144

145-
if show:
145+
if show and matplotlib.get_backend().lower() != "agg":
146146
plt.show()
147147

148148
return ret

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
import Cython.Build
44

55
setuptools.setup(
6-
ext_modules=Cython.Build.cythonize("pymoo/functions/compiled/*.pyx"),
6+
ext_modules=Cython.Build.cythonize("pymoo/functions/compiled/*.pyx", force=True),
77
include_dirs=[numpy.get_include()],
88
)

0 commit comments

Comments
 (0)