conda python3 and system python3

24 views
Skip to first unread message

Vincent Delecroix

unread,
Jun 28, 2021, 5:35:54 PM6/28/21
to sage-devel
Hello,

I am trying to build sage in a conda environment. I did install a lot
of things in it (including Python 3.9). However, the configure
scripts does choose a strange solution

configure:34331: result: no, this is a misconfigured Python whose
sysconfig compiler/linker flags contain -I or -L options, which may
cause wrong versions of libraries to leak into the build
of Python packages - see https://trac.sagemath.org/ticket/31132; to use
it anyway, use ./configure
--with-python=/home/vincent/miniconda3/envs/sage-build/bin/python3
configure:33784: checking ... whether /usr/bin/python3 is good

Instead of using the conda Python3 it succeeds in using the system
one. Which would better be avoided here.

Vincent
config.log
config.status

Isuru Fernando

unread,
Jun 28, 2021, 5:46:56 PM6/28/21
to sage-devel
Looks like the check for misconfigured python is a little bit too extreme.
If sysconfig's CFLAGS includes any path in the environment's CFLAGS,
then it shouldn't be considered misconfigured.

Isuru

--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/804e364a-0340-fd3e-519c-43cbf3b0dbe5%40gmail.com.

Matthias Koeppe

unread,
Jun 28, 2021, 6:26:41 PM6/28/21
to sage-devel
This is already tracked in https://trac.sagemath.org/ticket/31539
Reply all
Reply to author
Forward
0 new messages