bug-pyconfigure
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-pyconfigure] PyConfigure


From: Brandon Invergo
Subject: Re: [Bug-pyconfigure] PyConfigure
Date: Wed, 06 Mar 2013 10:40:20 +0100
User-agent: Notmuch/0.13.2 (http://notmuchmail.org) Emacs/24.2.1 (arm-unknown-linux-gnueabihf)

Hi Arne,

> I just found something else which would be pretty nice: Automake knows
> where to install data files, so it would be possible to give that path
> to python projects without having to use setuptools. For example you
> could create a small datapath.py file which holds variables pointing
> to the folders different kinds of data files.

In fact, this is more or less what I'm working on now, though at the
moment it is without Automake. The idea is to have the option of
forgoing distutils in favor of writing the installation logic in
Make. Automake will come later once all of the details have been ironed
out (in case we need to make changes upstream to accommodate our
needs). I was just getting started with this when I got suddenly
overloaded by my PhD research and haven't had blocks of free time more
than a couple hours long. I hope to finish it this month if I can, since
things are clearing up a bit.

In the end, the new version will have a script that you run in your
project's folder, and you pass it options which determine a) which
Python packaging "back-end" to use (only distutils at the moment,
hopefully setuputils and bento in the future) and b) whether to use that
back-end for the installation logic and have the Makefile wrap it or to
write your installation logic in the Makefile and have setup.py wrap
that. The idea is that the user will be able to run either "make
install" or "python setup.py install" and won't have to know whether
they're actually running distutils or Make underneath. 

Right now I'm working on a robust Makefile template that makes it easy
to install a project without the dev having to do much more than say
what files to install. Writing a wrapper setup.py should be simple but
of course it will require some testing.

I failed to merge your patch yesterday. Today then!

-brandon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]