-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I came up with this approach for setuptools_bzr, but it should apply for
git as well.  In 'setup.py', define an extension of the 'sdist' command
which barfs if the plugin is not installed::

class sdist(_sdist):

    def run(self):
        """ Override to barf is we can't import setuptools_bzr.
        """
        try:
            import setuptools_git
        except ImportError:
            print >> sys.stderr, "No setuptools_git intalled, aborting."
            sys.exit(1)
        _sdist.run(self)


and then use pass it to setup()::

setup(...,
      cmdclass={'sdist': sdist},
      )


Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tsea...@palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1pRm8ACgkQ+gerLs4ltQ5EIQCfbpDmro4DbgGMrCeyZ0KDK3iU
m1cAn0Ll6lZzt2mAikR2eRrdVtzQQi/Z
=mmSU
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to