Date: Sun, 03 Dec 2006 21:50:40 -0800 From: Alexander Botero-Lowry <alexbl@FreeBSD.org> To: Francisco Reyes <lists@stringsutils.com> Cc: FreeBSD Python list <freebsd-python@FreeBSD.org> Subject: Re: Getting started with python ports Message-ID: <200612040550.kB45oeYn024289@Laptop.mine.box> In-Reply-To: <cone.1165203870.972159.15353.1000@zoraida.natserv.net> References: <cone.1165203870.972159.15353.1000@zoraida.natserv.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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! > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612040550.kB45oeYn024289>