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

Re: Bug#750255: lio-utils: FTBFS: chmod: cannot access '/«BUILDDIR»/lio-utils-3.1+git2.fd0b34fd/debian/lio-utils/usr/share/pyshared/*.py': No such file or directory



[Ritesh Raj Sarraf, 2014-09-19]
> @Python Team: Can you please provide some guidance on this bug ? Earlier the
> python modules used to get installed into pyshared/ folder, from which I
> created symlinks to /usr/sbin/. Now, the modules get installed into python
> specific dist-packages/ folder. How do we add symlinks in this scenario ?

/usr/share/pyshared is implementation detail (changed recently)
which you shouldn't know about (and use it since you shouldn't know it
exists ;).

Symlinking to /usr/lib/python2.7/dist-packages/foo.py is not a good
idea as well (although there will be no Python 2.8, I hope - if you use
it, backporters will not be happy).

I suggest to use `python -m foo` or write a wrapper that uses this
command or Python script that imports foo and calls foo.main() (where
main() is whatever is called after "if __name__ == '__main__':" in this
file)
-- 
Piotr Ożarowski                         Debian GNU/Linux Developer
www.ozarowski.pl          www.griffith.cc           www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


Reply to: