pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: pkgsrc/math/py-numpy



roy%NetBSD.org@localhost said:
> > just libraries, never going to be exec'd
> In which case there is no valid reason for the she-bang to be there.

Right. Don't know why this is there -- perhaps some IDE
adds them blindly, or the code was refactored into a library
later from a standalone prototype.

> my python or package knowledge isn't enough to make
> the app / library distiction

Python files in PYSITELIB are very likely pure libraries.
To tell from the code -- if there are just blocks starting
with "def" or "class", it is a library. If there is
something like "if __name__ == '__main__':" there is
at least ine intention that it can be run as program.
(And, of course, without the "x" file permission it
isn't directly executable.)

I'd suggest to commit your mk/check-interpreter change,
so that other people can look theirselfes.

best regards
Matthias



------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Besuchen Sie uns auf unserem neuen Webauftritt unter www.fz-juelich.de


Home | Main Index | Thread Index | Old Index