Great! I opened

https://github.com/Normaliz/PyNormaliz/issues/56

We should ask Sebastian Gutsche to release a new PyNormaliz
version including the patch.

Vincent

Le 25/05/2019 à 19:15, Sébastien Labbé a écrit :
$ tar xvf PyNormaliz-2.5.tar.gz
$ cd PyNormaliz-2.5/
$ vim setup.py
$ sage -sh
(sage-sh) $ pip install .
Processing /home/slabbe/GitBox/sage/upstream/PyNormaliz-2.5
Installing collected packages: PyNormaliz
   Running setup.py install for PyNormaliz ... done
Successfully installed PyNormaliz-2.5


On Saturday, May 25, 2019 at 6:56:51 PM UTC+2, vdelecroix wrote:

All right, we should go with solution 1 then. Could you modify the
setup.py line 63 with
{{{
- subprocess.check_call(["sh", "configure"], env = my_env )
- subprocess.check_call(["sh", "./configure"], env = my_env )
}}}
and try in the build folder (with sage env activated)

$ pip install .

(or pip3 if you use Sage with python3)

NOTE: The man page of sh is kind of ambiguous about what is done
when the name of the file does not contain a slash.

{{{
[...] If the pathname does not contain a <slash> character:

   * The implementation shall attempt to read that file from the current
working directory; the file need not be executable.

[...]
}}}

Maybe it is the case that your sh actually does not follow the "shall"
above.

Le 25/05/2019 à 18:49, Sébastien Labbé a écrit :



1) Could you try

$ sh ./configure


(sage-sh) $ sh ./configure
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ -std=gnu++11 accepts -g... yes
checking whether g++ -std=gnu++11 supports C++11 features with
-std=gnu++11... yes
configure: creating ./config.status
config.status: creating config.py

2) Could you try to run `$ sh configure` in a folder where there is no
configure file at all. e.g you could move the configure file
somewhere else or/and run the command from `/tmp/`.



(sage-sh) $ cd /tmp
(sage-sh) $ pwd
/tmp
(sage-sh) $ sh configure
sh: 0: Can't open configure




--
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+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/f1b4b173-4e83-0f77-0308-d098ec047ed2%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to