Skip to content

Conversation

mkoeppe
Copy link
Contributor

@mkoeppe mkoeppe commented Jun 28, 2024

As reported by @culler, when Sage is configured with ./configure --disable-editable silently fails to install the Sage library in the venv (including scripts such as sage-ipython).

./sage -pip list | grep sage will show no sagemath-standard

The build log shows these messages:

[spkg-install] Successfully built sagemath_standard-10.4rc1-cp312-cp312-macosx_14_0_x86_64.whl
[spkg-install] Staged wheel file, staged /doesnotexist/sagelib/spkg-requirements.txt
[spkg-install] /Users/mkoeppe/s/sage/sage-rebasing/worktree-pristine/build/bin/sage-dist-helpers: line 367: /doesnotexist/sagelib/spkg-pipinst: No such file or directory
[spkg-install] /Users/mkoeppe/s/sage/sage-rebasing/worktree-pristine/build/bin/sage-dist-helpers: line 387: /doesnotexist/sagelib/spkg-piprm: No such file or directory
Moving package files from temporary location /Users/mkoeppe/s/sage/sage-rebasing/worktree-pristine/venv-wheels/var/tmp/sage/build/sagelib-10.4.rc1/inst to /Users/mkoeppe/s/sage/sage-rebasing/worktree-pristine/venv-wheels
Deleting build directory /Users/mkoeppe/s/sage/sage-rebasing/worktree-pristine/venv-wheels/var/tmp/sage/build/sagelib-10.4.rc1
Finished installing sagelib-10.4.rc1

Fixed here in this PR.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

@culler
Copy link
Contributor

culler commented Jun 29, 2024

With this PR I am able to build Sage, and when I run it I get a working prompt. Also, the p_group_cohomology spkg installs correctly.

Some comments:
1.. I am still getting a failure of sage_numerical_backends_coin. That failure is unrelated. It is a Cython error caused by having several definitions of cpdef functions which omit the noexcept qualifier which appears in the declarations of those functions. I will attach a patch file that worked for me when I added it to the spkg directory.
2. I think that non-editable installs should be the default, not the other way around. Editable installs are for developers, not users.
3. The prebuilt configure file for 10.4rc1 release did not make it to the mirrors. I had to install autoconf on one of my build systems.
noexcept.patch

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 29, 2024

Thanks!

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 29, 2024

I am still getting a failure of sage_numerical_backends_coin.

Thanks for the patch, I'll try to make a new release of this package

@vbraun vbraun merged commit 389c7ab into sagemath:develop Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The configure argument --enable-p_group_cohomology does not work Fix broken docker/Dockerfile again
3 participants