mozilla/django-browserid — pull request #52 by carljm (2012-03-27 20:21:15+00:00)
Title: Include JS file in sdist and install it.

The setup.py file currently doesn't include browserid.js in the tarball generated by `python setup.py sdist`, or install it.

The setuptools `include_package_data` keyword arg is ineffective without listing the setuptools-git plugin in `setup_requires` (setuptools natively only finds package data in Subversion). Since `setup_requires` plugins cause problems for people installing without a network connection, it's better to just explicitly list the package data using the `package_data` keyword arg.

Due to a bug in distutils in Python versions prior to 2.7, it's also necessary to list that JS file in MANIFEST.in or it may not be included in the sdist.

I've also switched to a plain `from distutils.core import setup` in place of `from setuptools import setup`, since with the removal of `include_package_data` no setuptools-specific features are used anymore.