Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Building Python 2.5 with pkgsrc: (3 Items)
   
Building Python 2.5 with pkgsrc  
Hi all, 

I've made the svn checkout of the whole HEAD_640 repository.

Then 

cd /bootstrap/HEAD_640/pkgsrc/lang/python25 and
bmake install successfully.

pkg_info gives me the subsequent informations:

-------------------pkg_info START----------------------
bootstrap-mk-files-20090114 *.mk files for the bootstrap bmake utility
install-sh-20070712 install script compatible with the BSD install program
bmake-20081111      Portable (autoconf) version of NetBSD 'make' utility
nawk-20050424nb3    Brian Kernighan's pattern-directed scanning and processing language
nbsed-20040821nb1   NetBSD-current's sed(1)
pkg_install-20090205 Package management and administration tools for pkgsrc
digest-20080510     Message digest wrapper utility
figlet-2.2.2        Print text banners in fancy ASCII art characters
libtool-base-1.5.26 Generic shared library support script (the script itself)
bzip2-1.0.5         Block-sorting file compressor
pkg_install-info-4.5nb3 Standalone GNU info file installation utility
readline-5.2nb2     GNU library that can recall and edit previous input
db4-4.7.25.3        Berkeley DB version 4 from Oracle
libiconv-1.12nb1    Character set conversion library
gettext-lib-0.14.6  Internationalized Message Handling Library (libintl)
zlib-1.2.3          General purpose data compression library
python25-2.5.2nb4   Interpreted, interactive, object-oriented
programming language
-------------------pkg_info END------------------------

I can successfully run python2.5 executable in /usr/pkg/bin from everywhere but I cannot find (and run) the plain python
 executable.

Any suggestion?

Ciao,
Gianluca
Re: Building Python 2.5 with pkgsrc  
On Thu, Feb 19, 2009 at 04:06:07AM -0500, Gianluca Angelici wrote:
> Hi all, 
> 
> I've made the svn checkout of the whole HEAD_640 repository.
> 
> Then 
> 
> cd /bootstrap/HEAD_640/pkgsrc/lang/python25 and
> bmake install successfully.
> 
> pkg_info gives me the subsequent informations:
> 
> -------------------pkg_info START----------------------
> bootstrap-mk-files-20090114 *.mk files for the bootstrap bmake utility
> install-sh-20070712 install script compatible with the BSD install program
> bmake-20081111      Portable (autoconf) version of NetBSD 'make' utility
> nawk-20050424nb3    Brian Kernighan's pattern-directed scanning and processing language
> nbsed-20040821nb1   NetBSD-current's sed(1)
> pkg_install-20090205 Package management and administration tools for pkgsrc
> digest-20080510     Message digest wrapper utility
> figlet-2.2.2        Print text banners in fancy ASCII art characters
> libtool-base-1.5.26 Generic shared library support script (the script itself)
> bzip2-1.0.5         Block-sorting file compressor
> pkg_install-info-4.5nb3 Standalone GNU info file installation utility
> readline-5.2nb2     GNU library that can recall and edit previous input
> db4-4.7.25.3        Berkeley DB version 4 from Oracle
> libiconv-1.12nb1    Character set conversion library
> gettext-lib-0.14.6  Internationalized Message Handling Library (libintl)
> zlib-1.2.3          General purpose data compression library
> python25-2.5.2nb4   Interpreted, interactive, object-oriented
> programming language
> -------------------pkg_info END------------------------
> 
> I can successfully run python2.5 executable in /usr/pkg/bin from everywhere but I cannot find (and run) the plain 
python executable.

Couple of options:

1: ln -s python2.5 /usr/pkg/bin/python
2: Have pkg_alternatives present during 'bmake install' of python
  - install pkgsrc/misc/getopt and pkgsrc/pkgtools/pkg_alternatives
  - cd lang/python2.5 && bmake deinstall && bmake install

Unfortunately the pkg_alternatives stuff doesn't seem to be doc'd very
well.

BTW we ship python with 6.4

-seanb
Re: Building Python 2.5 with pkgsrc  
Many thanks!

I've followed the 2nd (cleaner) option and
works like a charm...

Ciao,
Gianluca