how to turn docbuild off with conda

33 views
Skip to first unread message

Martin R

unread,
4:28 AM (18 hours ago) 4:28 AM
to sage-devel
Dear all,

Using the "classical" install, I can do "configure --disable-doc" so docs are not build and recompilation is reasonably fast.

How can I do this in a conda install.  When I start sage, it tells me

../../src/doc/meson.build:5: WARNING: Documentation building enabled, generating targets may be slow. To disable this, pass -Dbuild-docs=false. 

but I do not understand how I can pass this option.  I tried

(sage-dev) martin@toolbox:~/sage-trac$ meson configure -Dbuild-docs=False

ERROR: No valid build directory found, cannot modify options.

Best wishes,

Martin

Antonio Rojas

unread,
4:49 AM (18 hours ago) 4:49 AM
to sage-devel
meson setup your-build-dir -Dbuild-docs=False

Martin R

unread,
5:30 AM (17 hours ago) 5:30 AM
to sage-devel
:-(  this did not work.

I'm not completely sure what my your-build-dir is, I was guessing "build" in the root dir of my sage.  Or is it

 meson-python: building sagemath: /home/martin/miniforge3/envs/sage-dev/bin/ninja

?

Dima Pasechnik

unread,
9:02 AM (13 hours ago) 9:02 AM
to sage-...@googlegroups.com
Replace "your-build-dir" by something like "build/sagenodoc"

Tobia...@gmx.de

unread,
4:13 PM (6 hours ago) 4:13 PM
to sage-devel
You simply use pip to install sage, right?

In this case,  `pip install <other args> -Csetup-args=" -Dbuild-docs=False" .` should work.
Reply all
Reply to author
Forward
0 new messages