old_contents: from setuptools import setup, find_packages
  
  setup(
      name='pylearn2',
      version='0.1dev',
      packages=find_packages(),
      description='A machine learning library build on top of Theano.',
      license='BSD 3-clause license',
      long_description=open('README.rst').read(),
      install_requires=['numpy>=1.5', 'theano', 'pyyaml', 'argparse'],
      package_data={
          '': ['*.txt', '*.rst', '*.cu', '*.cuh', '*.h'],
      },
  )
  
new_contents: import sys
  
  from setuptools import setup, find_packages
  
  if 'develop' not in sys.argv:
      raise NotImplementedError("Pylearn2 currently supports only setup.py "
              "develop. Since Pylearn2 is under rapid, active development, "
              "setup.py install is not yet supported.")
      # Detailed notes:
      # This modification of setup.py is designed to prevent two problems
      # novice users frequently encountered:
      # 1) Novice users frequently used "git clone" to get a copy of Pylearn2,
      # then ran setup.py install, then would use "git pull" to get a bug fix
      # but would forget to run "setup.py install" again.
      # 2) Novice users frequently used "sudo" to make an "installed" copy of
      # Pylearn2, then try to use the tutorials in the "scripts" directory in
      # the "installed" copy. Since the tutorials are then in a directory owned
      # by root and need to create files in the local directory, some users
      # would run the tutorials using "sudo". Besides being dangerous, this
      # created additional problems because "sudo" does not just run the script
      # with root privileges, it actually changes the user to root, and thus
      # pylearn2-related environment variables configured in the user's
      # .bashrc would no longer be available.
      # Installing only in development mode avoids both problems because there
      # is now only a single copy of the code and it is stored in a directory
      # editable by the user.
      # Note that none of the Pylearn2 installation documentation recommends
      # using setup.py install or pip. Most of the Pylearn2 developers just
      # obtain Pylearn2 via git clone and then add it to their PYTHONPATH
      # manually.
  
  setup(
      name='pylearn2',
      version='0.1dev',
      packages=find_packages(),
      description='A machine learning library build on top of Theano.',
      license='BSD 3-clause license',
      long_description=open('README.rst').read(),
      install_requires=['numpy>=1.5', 'theano', 'pyyaml', 'argparse'],
      package_data={
          '': ['*.txt', '*.rst', '*.cu', '*.cuh', '*.h'],
      },
  )
  
subject: disable all "setup.py" commands except develop