Re: [sage-devel] Re: How to use spkg-install in a travis-ci script?

2019-07-30 Thread Dima Pasechnik
That file has been moved recently. It used to be
src/bin/sage-dist-helpers

I guess that's where it is on your docker image.

On Tue, Jul 30, 2019 at 11:35 PM Simon King  wrote:
>
> On 2019-07-30, Simon King  wrote:
> > Perhaps I found a solution.
>
> Yes and no.
>
> Yes, it does work with the sage version on my laptop
>
> No, it does not work on travis-ci with a sage docker image.
>
> Namely, sage-dist-helpers cannot be found in $SAGE_ROOT/build/bin in the
> docker image:
>
> ls $SAGE_ROOT/build/bin
> sage-apply-patches
> sage-download-file
> sage-flock
> sage-logger
> sage-package
> sage-pip-install
> sage-python23
> sage-spkg
> sage-spkg-uninstall
> sage-system-python
> sage-uncompress-spkg
>
> I guess simply the version in the docker image (which is "latest") is
> too old. What can I replace "source $SAGE_ROOT/build/bin/sage-dist-helpers"
> with, in the docker image?
>
> Best regards,
> Simon
>
> --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/qhq9mv%242fkc%241%40blaine.gmane.org.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq1GLeXMTvOo6ePWA4-yGdxjv76QtwM43Ox%3Dn7i1%2BDBh9w%40mail.gmail.com.


[sage-devel] Re: How to use spkg-install in a travis-ci script?

2019-07-30 Thread Simon King
On 2019-07-30, Simon King  wrote:
> Perhaps I found a solution.

Yes and no.

Yes, it does work with the sage version on my laptop

No, it does not work on travis-ci with a sage docker image.

Namely, sage-dist-helpers cannot be found in $SAGE_ROOT/build/bin in the
docker image:

ls $SAGE_ROOT/build/bin
sage-apply-patches
sage-download-file
sage-flock
sage-logger
sage-package
sage-pip-install
sage-python23
sage-spkg
sage-spkg-uninstall
sage-system-python
sage-uncompress-spkg

I guess simply the version in the docker image (which is "latest") is
too old. What can I replace "source $SAGE_ROOT/build/bin/sage-dist-helpers"
with, in the docker image?

Best regards,
Simon

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/qhq9mv%242fkc%241%40blaine.gmane.org.


[sage-devel] Re: How to use spkg-install in a travis-ci script?

2019-07-30 Thread Simon King
Perhaps I found a solution.

Apparently the sdh_* shell functions are defined in
$SAGE_ROOT/build/bin/sage-dist-helpers. Sourcing, so it seems, makes the
spkg-install script work.

Best regards,
Simon

On 2019-07-30, Simon King  wrote:
> Hi Dima,
>
> On 2019-07-30, Dima Pasechnik  wrote:
>> just fix the PATH, no?
>>
>> It should include SAGE_ROOT/src/bin, SAGE_ROOT/build/bin, etc
>
> Apparently sage -sh is fixing the path:
>
> $ ~/Sage/git/sage/sage -sh -c 'echo $PATH'
> /home/king/Sage/git/sage/local/libexec/ccache:/home/king/Sage/git/sage/build/bin:/home/king/Sage/git/sage/src/bin:/home/king/Sage/git/sage/local/bin:/home/king/bin:/home/king/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
> $ echo $PATH
> /home/king/bin:/home/king/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
>
> If I understand correctly, the sdh_* thingies aren't executables (but I
> don't know what they are instead -- macros for the shell language?).
> I guess that's why the path is not enough.
>
> Best regards,
> Simon
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/qhq85b%2474l4%241%40blaine.gmane.org.


[sage-devel] Re: How to use spkg-install in a travis-ci script?

2019-07-30 Thread Simon King
Hi Dima,

On 2019-07-30, Dima Pasechnik  wrote:
> just fix the PATH, no?
>
> It should include SAGE_ROOT/src/bin, SAGE_ROOT/build/bin, etc

Apparently sage -sh is fixing the path:

$ ~/Sage/git/sage/sage -sh -c 'echo $PATH'
/home/king/Sage/git/sage/local/libexec/ccache:/home/king/Sage/git/sage/build/bin:/home/king/Sage/git/sage/src/bin:/home/king/Sage/git/sage/local/bin:/home/king/bin:/home/king/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
$ echo $PATH
/home/king/bin:/home/king/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

If I understand correctly, the sdh_* thingies aren't executables (but I
don't know what they are instead -- macros for the shell language?).
I guess that's why the path is not enough.

Best regards,
Simon

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/qhq7pp%245ut4%241%40blaine.gmane.org.


Re: [sage-devel] How to use spkg-install in a travis-ci script?

2019-07-30 Thread Dima Pasechnik
On Tue, 30 Jul 2019 at 21:34, Simon King  wrote:

> Hi!
>
> I learned at Sage Days 100 how to post the code for my cohomology spkg
> on github, and learned basics about travis-ci.
>
> Meanwhile I found out how to start a docker container and install the
> prerequisites of my spkg.
>
> Current problem: How to launch the package's spkg-install?
>
> Of course(?) the spkg-install script is run in a sage shell, but
> apparently this is not enough, as
>   sage -sh "/full/path/to/spkg-install"
> fails because it cannot find sdh_make, sdh_die etc.
>
> So, what can I do to make the Sage distribution helpers (is that the
> meaning of "sdh"?) available to spkg-install?


just fix the PATH, no?

It should include SAGE_ROOT/src/bin, SAGE_ROOT/build/bin, etc


>
> Best regards,
> Simon
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/qhq2jm%242pk6%241%40blaine.gmane.org
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq3v%3Ddzk2xjGQxfkfy-bjVDgXQyHi95DY90D__%2B56QVg-A%40mail.gmail.com.


[sage-devel] How to use spkg-install in a travis-ci script?

2019-07-30 Thread Simon King
Hi!

I learned at Sage Days 100 how to post the code for my cohomology spkg
on github, and learned basics about travis-ci.

Meanwhile I found out how to start a docker container and install the
prerequisites of my spkg.

Current problem: How to launch the package's spkg-install?

Of course(?) the spkg-install script is run in a sage shell, but
apparently this is not enough, as
  sage -sh "/full/path/to/spkg-install"
fails because it cannot find sdh_make, sdh_die etc.

So, what can I do to make the Sage distribution helpers (is that the
meaning of "sdh"?) available to spkg-install?

Best regards,
Simon

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/qhq2jm%242pk6%241%40blaine.gmane.org.