setup: make sure we use the imported module
This prevent pyflakes to complains about it (and work around any possible demand
import magic.
I'm not sure why we do this important dance at all, but I'm leaving it there in
doubt.
from distutils.core import setup
requires = []
try:
import mercurial
mercurial.__all__
except ImportError:
requires.append('mercurial')
setup(
name='hg-topics',
version='1.0.0',
author='Augie Fackler',
maintainer='Augie Fackler',
maintainer_email='augie@google.com',
url='http://bitbucket.org/durin42/hg-topics/',
description=('Experimental tinkering with workflow ideas '
'for topic branches.'),
long_description=open('README.md').read(),
keywords='hg mercurial',
license='GPLv2+',
packages=['hgext3rd.topic'],
install_requires=requires,
)