[Top][All Lists]

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

Re: [GMG-Devel] configure/Makefile for mediagoblin

From: Christopher Allan Webber
Subject: Re: [GMG-Devel] configure/Makefile for mediagoblin
Date: Mon, 22 Apr 2013 11:43:40 -0500
User-agent: mu4e; emacs

This was another mail long stuck in queue.

I'm not sure what the status of it is... I pinged for an update:

I would be interested in working with someone on figuring out how well
this fits with current mediagoblin infrastructure.

I've been thinking recently about whether or not we might have some
makefile scripts to make development setup shorter.  For example:

  make devenv  # does the whole virtualenv style setup shebang,
               # maybe tries to even help you with appropriate packages
               # if it can detect as such on your system.

  make updateall  # assuming you're running a common pattern of environment,
                  # does a git pull and ./bin/gmg dbupdate and friends?

No idea if that's a good idea and how much that overlaps with this.  If
someone is interested in taking on the state of this, I think conversing
on IRC would be the way to go.

 - Chris

Brandon Invergo writes:

> Hi everyone,
> I've been working to develop some scripts for Python-based GNU projects
> to meet the coding standards regarding configure scripts and
> Makefiles. Generally speaking, this is a pretty simple task, just
> providing a simple wrapper around However, I went ahead and
> worked on a bunch of Autoconf macros to give even more power in
> configuring the system.
> I've already put together a configure script and a Makefile for
> MediaGoblin, which I've used in implementing an automated install script
> in GSRC (GNU Source Release Collection). You can find the current
> version here:
> This archive would just need to be extracted into the source directory
> of MediaGoblin and then the typical procedure of
> $ ./configure
> $ make install
> could be run, while still retaining the ability to just use the
> directly if you so desire.
> The configure script can take a --with-virtualenv environment to use
> virtualenv. So, to follow the deployment docs for MediaGoblin, you'd
> just do:
> $ ./configure --with-virtualenv --prefix=/srv/
> $ make install
> Otherwise, the libraries will be installed to the usual Python module
> directory under ${prefix} (default = /usr/local/lib/pythonX.Y/site-packages)
> and setting up a site is as simple as copying the contents of the
> ${pkgdatadir} (by default /usr/local/share/mediagoblin, containing
> mediagoblin.ini,, etc) to your site's
> directory. If I screwed that up, let me know, but it seems to work just
> fine for me.
> The user can specify the particular Python and sphinx-build binaries to
> use via the PYTHON and SPHINXBUILD configure flags:
> $ ./configure PYTHON=/usr/bin/python2
> Other than that, it also checks for the existence of the required Python
> libraries like lxml, which is handy. Also, the Makefile supports an
> 'uninstall' target, which lacks. 
> So, inside that archive, you'll find the Autoconf file
> along with a pre-generated configure script, a which is to
> be converted to a Makefile by configure, as well as a subdirectory
> containing the Autoconf macros, and a few scripts that are required by
> configure. 
> If you would like to make further customizations to the configure script
> or the Makefile, I would be happy to help ("I Learned Autoconf So You
> Don't Have To" (tm)). Please include my email address in your reply
> though since I'm not subscribed to this list!
> Cheers,
> Brandon Invergo
> _______________________________________________
> devel mailing list
> address@hidden

reply via email to

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