William Stein wrote:

Regarding the implementation of that script, you could maybe check for
ls returning an error (or whatever) as above.  However, better
would be to write something in Python, e.g.,

#!/usr/bin/env python

import os

# do something with os.listdir()

---

By factoring out this functionality in a script, we avoid awkward
buggy so called "best practices" appearing in spkg-install scripts.
As much as possible, anything that could possibly be replicated in
several spkg-install scripts should be factored out.


William

That's not going to work until python is installed. Why not make it a shell script instead - it would work before python is built, irrespective of whether someone has python installed on their machine.

Dave


--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to sage-devel+unsubscribegooglegroups.com or 
reply to this email with the words "REMOVE ME" as the subject.

Reply via email to