From owner-freebsd-python@FreeBSD.ORG  Mon Dec  4 05:50:50 2006
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
X-Original-To: freebsd-python@FreeBSD.org
Delivered-To: freebsd-python@FreeBSD.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id B4BF016A47B
	for <freebsd-python@FreeBSD.org>; Mon,  4 Dec 2006 05:50:50 +0000 (UTC)
	(envelope-from alex@foxybanana.com)
Received: from ultrasuede.reed.edu (ultrasuede.reed.edu [134.10.2.46])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8BC8643CA2
	for <freebsd-python@FreeBSD.org>; Mon,  4 Dec 2006 05:50:19 +0000 (GMT)
	(envelope-from alex@foxybanana.com)
Received: from Laptop.mine.box (c038h213.dorm.reed.edu [134.10.38.213])
	by ultrasuede.reed.edu (8.13.8/8.13.8) with ESMTP id kB45okU0002822
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT); 
	Sun, 3 Dec 2006 21:50:46 -0800
Received: from localhost (localhost [127.0.0.1])
	by Laptop.mine.box (8.13.6/8.13.6) with ESMTP id kB45oeYn024289;
	Sun, 3 Dec 2006 21:50:40 -0800 (PST)
	(envelope-from alex@Laptop.mine.box)
Message-Id: <200612040550.kB45oeYn024289@Laptop.mine.box>
From: Alexander Botero-Lowry <alexbl@FreeBSD.org>
To: Francisco Reyes <lists@stringsutils.com>
In-reply-to: <cone.1165203870.972159.15353.1000@zoraida.natserv.net> 
References: <cone.1165203870.972159.15353.1000@zoraida.natserv.net>
Comments: In-reply-to Francisco Reyes <lists@stringsutils.com>
	message dated "Sun, 03 Dec 2006 22:44:30 -0500."
Date: Sun, 03 Dec 2006 21:50:40 -0800
Sender: alex@foxybanana.com
X-Scanned-By: MIMEDefang 2.58 on 134.10.2.46
Cc: FreeBSD Python list <freebsd-python@FreeBSD.org>
Subject: Re: Getting started with python ports 
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>, 
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Dec 2006 05:50:50 -0000

> I would like to learn to make Python ports.
> Going over the FreeBSD Porter's Handbook and it seems more geared towards C.
> 
It definetly is but there is a section on python ports as well. 

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/using-python.html

> Anyone knows of a good intro to ports.. geared towards creating ports for 
> Python apps? In particular I may have some ports which will be just to be 
> used in the place I work to have some programs easily installed across a 
> number of servers.
> 
The address above will help you out. Basically if you have a setup.py using 
distutils you can use USE_PYDISTUTILS and it will basically do all the magic 
for you.

> Alternatively, any ports that anyone believes are simple enough to use as 
> samples would be just as good. So far the programs I have made for work are 
net/py-netstring, devel/py-magic are both fairly simple ones using 
USE_PYDISTUTILS

> fairly simple (ie just a single file with no dependencies). However, as 
> python becomes more widely used at work I may need to have some dependencies 
> loaded for my scripts to work.. so I figured I would start learning how to 
> work with python ports early. 
Dependencies are also fairly easy to do, 
${PYTHON_SITELIBDIR}/blah/__init__.py:${PORTSDIR}/devel/py-blah
or something like that will work in most cases (if the python app is
a module).

I hope this helps,

Alex
> _______________________________________________
> freebsd-python@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-python
> To unsubscribe, send any mail to "freebsd-python-unsubscribe@freebsd.org"
> 
> !DSPAM:4,45739a54491182046820680!
> 
>