From owner-freebsd-questions@FreeBSD.ORG Sat Aug 27 03:17:21 2011 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 720E4106564A for ; Sat, 27 Aug 2011 03:17:21 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (mail1.sourcehosting.net [74.205.51.45]) by mx1.freebsd.org (Postfix) with ESMTP id 468658FC08 for ; Sat, 27 Aug 2011 03:17:21 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1Qx9O8-000JnL-Og; Fri, 26 Aug 2011 23:16:58 -0400 Received: from v104.entropy.prv (v104.entropy.prv [192.168.1.104]) by cube.entropy.prv (Postfix) with ESMTP id D721651F9813; Fri, 26 Aug 2011 23:17:14 -0400 (EDT) Message-ID: <4E5861BA.8000100@FreeBSD.org> Date: Fri, 26 Aug 2011 23:17:14 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.20) Gecko/20110804 Lightning/1.0b2 Thunderbird/3.1.12 MIME-Version: 1.0 To: doug@safeport.com References: <4E5838E2.407@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.1.1 OpenPGP: id=1C940290 X-SA-Exim-Connect-IP: 68.189.245.235 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: *** X-Spam-Status: No, score=3.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, TVD_RCVD_IP autolearn=no version=3.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: doug , freebsd-questions@FreeBSD.org Subject: Re: Installing Python Packages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2011 03:17:21 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 8/26/11 8:24 PM, doug@safeport.com wrote: > On Fri, 26 Aug 2011, Greg Larkin wrote: > >> On 8/26/11 8:07 PM, doug wrote: >>> I am teaching myself python and have 2.6 installed. What is the proper >>> way to install py26-setuptools? As 2.7 is the default it appears that I >>> can neither use pkg_add nor build from the ports tree. >>> >>> I can download the source and the 2.6 egg. It appears that I need to >>> configure the egg for FreeBSD. Is that correct? >> >> >> Hi Doug, >> >> You can do this easily by using the ports tree. First, add the >> following to your /etc/make.conf (create the file if necessary): >> >> PYTHON_DEFAULT_VERSION=python2.6 >> >> Next, do this: >> >> cd /usr/ports/devel/py-setuptools && make install clean >> >> You should be all set, and any other Python port that you install will >> use the Python 2.6 installation, assuming you installed it from the >> ports tree. >> >> Hope that helps, >> Greg > > Great - I am sure it will, thank you. > > Where does one find all these 'magic' make variables? Hi Doug, The best place to start is by looking through the files /usr/ports/Mk/*.mk. In the header comment of each .mk file, you'll find a long list of variables and what they are used for. Some of the variables are only useful in the context of a port Makefile, but other ones like PYTHON_DEFAULT_VERSION are used in /etc/make.conf. At the moment, I don't know if there's an easy way to enumerate all variables of the latter type, but that would be a good project. I use things like: NOPORTDOCS=yes NOPORTEXAMPLES=yes NO_X11=yes in /etc/make.conf when building server images. Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEUEARECAAYFAk5YYboACgkQ0sRouByUApA0WACeKqc/nO43eTesrdF1WiiKh0qA +oUAmM+tzYNhbXSJ+VtKdRM8CWmL/Is= =e/fR -----END PGP SIGNATURE-----