Getting started with python ports
Alexander Botero-Lowry
alexbl at FreeBSD.org
Sun Dec 3 21:50:50 PST 2006
> 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-python
> To unsubscribe, send any mail to "freebsd-python-unsubscribe at freebsd.org"
>
> !DSPAM:4,45739a54491182046820680!
>
>
More information about the freebsd-python
mailing list