|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 01/11] Fix installation of python libs
On Tue, 21 Mar 2017, Géza Gémes wrote:
> 2017. márc. 21. 0:54 ezt írta ("Stefano Stabellini" <sstabellini@xxxxxxxxxx>):
> On Sun, 19 Mar 2017, Géza Gémes wrote:
> > Change deb package build in order to symlink the files installed
> > to site-packages to dist-packages to have them inluded in the
> > default PYTHONPATH
> >
> > Signed-off-by: Géza Gémes <geza.gemes@xxxxxxxxx>
> > ---
> > scripts/mkdeb | 9 +++++++++
> > 1 file changed, 9 insertions(+)
> >
> > diff --git a/scripts/mkdeb b/scripts/mkdeb
> > index 3796300..23bcc2a 100755
> > --- a/scripts/mkdeb
> > +++ b/scripts/mkdeb
> > @@ -46,6 +46,15 @@ then
> > rm -rf deb/usr/lib64
> > fi
> >
> > +# Make sure that python libs will be in the path
> > +mkdir -p deb/usr/lib/python2.7/dist-packages/
> > +cd deb/usr/lib/python2.7/dist-packages/
> > +for file in `ls ../site-packages`
> > +do
> > + ln -s ../site-packages/$file .
> > +done
> > +cd -
>
> Actually for Debian I think it makes sense to move (not link) the files
> to dist-packages, what do you think?
>
>
> As I haven't tried on anything else than ubuntu 14.04 I was afraid of
> breaking it elsewhere. But if you are aware that Debian and forks are using
> dist-packages, I will change
> the symlink to a move.
Yes, I think that's the case.
> > # Fill in the debian boilerplate
> > mkdir -p deb/DEBIAN
> > cat >deb/DEBIAN/control <<EOF
> > --
> > 2.7.4
> >
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |