[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pysieved] [PATCH] Setup.py and intent to submit FreeBSD port
- From: Neale Pickett <neale at woozle dot org>
- Subject: Re: [pysieved] [PATCH] Setup.py and intent to submit FreeBSD port
- Date: Sat, 28 Jul 2007 18:53:04 -0600
Jonathan,
I've used distutils before but only to distribute binary modules. In my
opinion it'd be easier just to copy everything into
/usr/local/lib/pysieved and have inetd run it from there. I know this
breaks with the "binaries in bin/ or sbin/ directories" paradigm but
it's just so much easier.
If you like you can make a shell script wrapper to launch the thing in
lib/, and put that in bin/.
If you do get distutils working please let me know what you did and I'll
merge that in the distribution. But just know that for the forseeable
future I intend the installation process to be "untar and go".
Jonathan Stewart <jonathan at kc8onw dot net> writes:
> [This is mainly directed at Neale]
>
> I'm trying to setup pysieved to be able to use the python distutils for
> installation in the process of creating a freebsd port. I have the
> files from the source rearranged like [1] and I have created a setup.py
> [2] This unfortunately breaks all the imports and I don't know how to
> fix them as I don't have much experience with Python modules/packages.
>
> Should I even bother trying to use the Python distutils and have most of
> pysieved installed in site-packages (which seems like it may cause
> problems because it's interpreter version specific) or should I just
> copy everything into a folder in /usr/local/bin ?
>
> Here are links to the python distutils information for those that are
> not familiar with it.
> http://docs.python.org/dist/intro.html
> http://docs.python.org/inst/inst.html
>
> [1]
> ./COPYING
> ./README
> ./README.Dovecot
> ./THANKS
> ./setup.py
> ./contrib
> ./contrib/pysieved.xinetd
> ./pysieved.ini
> ./pysieved.py
> ./test.py
> ./pysieved
> ./pysieved/managesieve.py
> ./pysieved/plugins
> ./pysieved/plugins/__init__.py
> ./pysieved/plugins/accept.py
> ./pysieved/plugins/dovecot.py
> ./pysieved/plugins/htpasswd.py
> ./pysieved/plugins/mysql.py
> ./pysieved/plugins/pam.py
> ./pysieved/plugins/passwd.py
> ./pysieved/plugins/sasl.py
> ./pysieved/plugins/virtual.py
> ./pysieved/daemon.py
> ./pysieved/config.py
>
> [2]
> from distutils.core import setup
>
> setup(name='pysieved',
> version='20070725',
> description='Python Managesieve server',
> author='Neale Pickett',
> author_email='neale at woozle dot org',
> url='http://woozle.org/~neale/src/pysieved/',
> packages=['pysieved', 'pysieved/plugins'],
> scripts=['pysieved.py'],
> )