Removing *.py ending from python script filenames

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

 



Hello Vincent, Mark, Ben, Karl, Jens,

I just prepared packaging for fio-2.17 and as I added some of the new Python 
script I again came across the issues the file name ending "*.py" creates 
within Debian.

1) As per Debian policy files in /usr/bin or /usr/sbin or any of the other bin 
directory may not have such a file ending. Thus I may not put the files in 
$PATH.

2) Man or the manpage integration debhelper script do not like this file ending 
either:

[…]/usr/share/doc/fio> dpkg -L fio | grep man  
[…]
/usr/share/man/py
/usr/share/man/py/man1
/usr/share/man/py/man1/fiologparser_hist.1.gz

(the section here is complete crap)

And… well all ways to rename files *just* prior to the packaging run… are as 
far as I know… quite ugly – like preparing modified upstream tarball and things 
like that.

Now I wonder whether you would be okay with just removing the "*.py" filename 
ending from the script and manpage filenames.

[…]fio-upstream> find -iname "*.py*" | grep -v unit_tests
./tools/fio_latency2csv.py
./tools/fiologparser.py
./tools/hist/fiologparser_hist.py
./tools/hist/fiologparser_hist.py.1
./tools/hist/half-bins.py

This would be the easiest solution for me as a packager, would allow to put 
scripts into $PATH and I think the "*.py" doesn´t really add much value. 
Actually the user of such a script can still see whether its a python script 
by looking at the file.

Also for putting things in $PATH it might make sense to add "fio" to the 
scriptname "half-bins.py" maybe "fio-half-bins.py".

I could prepare an upstream patch for that one…  if you are okay with the name 
change.

And PS: Any intention to write some manpages for the scripts where they are 
missing? :)

Thank you,

-- 
Martin Steigerwald  | Trainer

teamix GmbH
Südwestpark 43
90449 Nürnberg

Tel.:  +49 911 30999 55 | Fax: +49 911 30999 99
mail: martin.steigerwald@xxxxxxxxx | web:  http://www.teamix.de | blog: http://blog.teamix.de

Amtsgericht Nürnberg, HRB 18320 | Geschäftsführer: Oliver Kügow, Richard Müller, Jakob Høholdt

teamix Support Hotline: +49 911 30999-112
 
 *** Bitte liken Sie uns auf Facebook: facebook.com/teamix ***

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux