Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jul 2013 15:43:28 +0300
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        ports@freebsd.org
Subject:   python 2 and 3 modules
Message-ID:  <E1V3QJs-000JpR-FR@kabab.cs.huji.ac.il>

next in thread | raw e-mail | index | archive | help
Hi,
I need to be able to have both (2.7 and 3.2) modules.
setting PYTHON_VERSION=3.2 in /etc/make.conf compiles properly,
but make install, insists that that the 2.7 version is installed!
after deinstalling, it will install the 3.2 version in the correct directory:
	/usr/local/lib/python3.2/site-path
but now I lost the 2.7 version.

the same happens if I try to install the 2.7 version, it will complain
that the 3,2 version is installed.

BTW, the comments in ports/Mk/bsd.python.mk are very confusing and
some are wrong:
# PYTHON_VERSION        - Version of the python binary in your ${PATH}, in the
#                                         format "python2.0". Set this in your 
makefile in case you
#                                         want to build extensions with an 
older binary.
#                                         default: depends on the version of 
your python binary

setting it to "python3.2" produces errors in the make, while 3.2 is ok

is there any fix?

thanks,
	danny





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1V3QJs-000JpR-FR>