pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
installed python leaking into python 2.7.3 filenames
Hi,
I'm having trouble upgrading Python from 2.7.2 to 2.7.3:
…
running install_scripts
copying build/scripts-2.7/pydoc2.7 ->
/usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/bin
copying build/scripts-2.7/smtpd2.7.py ->
/usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/bin
copying build/scripts-2.7/2to3-2.7 ->
/usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/bin
changing mode of /usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/bin/pydoc2.7
to 775
changing mode of
/usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/bin/smtpd2.7.py to 775
changing mode of /usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/bin/2to3-2.7
to 775
running install_egg_info
Writing
/usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/lib/python2.7/lib-dynload/Python-2.7.2-py2.7.egg-info
=> Automatic manual page handling
pkg_create: can't stat
`/usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/lib/python2.7/lib-dynload/Python-2.7.3-py2.7.egg-info'
pkg_create: can't stat
`/usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/lib/python2.7/lib2to3/Grammar2.7.3.final.0.pickle'
pkg_create: can't stat
`/usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/lib/python2.7/lib2to3/PatternGrammar2.7.3.final.0.pickle'
===> Building binary package for python27-2.7.3
=> Creating binary package /usr/pkgsrc/packages/All/python27-2.7.3.tgz
pkg_create: can't stat
`/usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/lib/python2.7/lib-dynload/Python-2.7.3-py2.7.egg-info'
pkg_create: can't stat
`/usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/lib/python2.7/lib2to3/Grammar2.7.3.final.0.pickle'
pkg_create: can't stat
`/usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/lib/python2.7/lib2to3/PatternGrammar2.7.3.final.0.pickle'
pkg_create: lstat failed for file
lib/python2.7/lib-dynload/Python-2.7.3-py2.7.egg-info: No such file or directory
*** Error code 2
Stop.
bmake: stopped in /usr/pkgsrc/lang/python27
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/lang/python27
I've tracked down the .egg-info – it is being generated from
Lib/distutils/command/install_egg_info.py which generates the filename from the
version of python it is run from – and this is where the old (installed) python
version (in my case, 2.7.2) has leaked in, so the file can't be found when
creating the package because it has the wrong name. Notice the mismatch between
Writing
/usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/lib/python2.7/lib-dynload/Python-2.7.2-py2.7.egg-info
and
pkg_create: can't stat
`/usr/obj/pkg/lang/python27/work/.destdir/usr/pkg/lib/python2.7/lib-dynload/Python-2.7.3-py2.7.egg-info'
It works fine in a jail / chroot.
I have no idea where and why this happens and how to fix it, so I'd be happy
about any suggestion …
Cheers,
Matthias
PS: this is on DragonFly grade.so 3.1-DEVELOPMENT DragonFly
v3.1.0.605.g073ec-DEVELOPMENT #25: Mon Apr 30 13:23:38 CEST 2012
matthias%grade.so@localhost:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64
Home |
Main Index |
Thread Index |
Old Index