old_contents: #!/usr/bin/env python
  # coding: utf-8
  
  # Copyright (c) Juptyer Development Team.
  # Distributed under the terms of the Modified BSD License.
  
  #-----------------------------------------------------------------------------
  # Minimal Python version sanity check (from IPython/Jupyterhub)
  #-----------------------------------------------------------------------------
  from __future__ import print_function
  
  import os
  import sys
  
  v = sys.version_info
  if v[:2] < (3,3):
      error = "ERROR: Jupyter Hub requires Python version 3.3 or above."
      print(error, file=sys.stderr)
      sys.exit(1)
  
  
  if os.name in ('nt', 'dos'):
      error = "ERROR: Windows is not supported"
      print(error, file=sys.stderr)
  
  # At least we're on the python version we need, move on.
  from setuptools import setup
  
  setup_args = dict(
      name                = 'jupyterlmod',
      packages            = ['jupyterlmod', 'lmod'],
      data_files          = [('share/jupyter/nbextensions', ['nbextensions/lmod.js'])],
      version             = "1.0.0",
      description         = """jupyterlmod: A custom handler to use lmod through Jupyter.""",
      long_description    = "",
      author              = "Félix-Antoine Fortin",
      author_email        = "felix-antoine.fortin@calculquebec.ca",
      url                 = "http://www.calculquebec.ca",
      license             = "BSD",
      platforms           = "Linux, Mac OS X",
      keywords            = ['Interactive', 'Interpreter', 'Shell', 'Web', 'Lmod'],
      classifiers         = [
          'Intended Audience :: Developers',
          'Intended Audience :: System Administrators',
          'Intended Audience :: Science/Research',
          'License :: OSI Approved :: BSD License',
          'Programming Language :: Python',
          'Programming Language :: Python :: 3',
      ],
      install_requires   = [
      'jupyter>=1.0.0',
      ],
  )
  
  def main():
      setup(**setup_args)
  
  if __name__ == '__main__':
      main()
  
new_contents: #!/usr/bin/env python
  # coding: utf-8
  
  from setuptools import setup
  
  setup_args = dict(
      name                = 'jupyterlmod',
      packages            = ['jupyterlmod', 'lmod'],
      data_files          = [('share/jupyter/nbextensions', ['nbextensions/lmod.js'])],
      version             = "1.0.0",
      description         = """jupyterlmod: A custom handler to use lmod through Jupyter.""",
      long_description    = "",
      author              = "Félix-Antoine Fortin",
      author_email        = "felix-antoine.fortin@calculquebec.ca",
      url                 = "http://www.calculquebec.ca",
      license             = "BSD",
      platforms           = "Linux, Mac OS X",
      keywords            = ['Interactive', 'Interpreter', 'Shell', 'Web', 'Lmod'],
      classifiers         = [
          'Intended Audience :: Developers',
          'Intended Audience :: System Administrators',
          'Intended Audience :: Science/Research',
          'License :: OSI Approved :: BSD License',
          'Programming Language :: Python',
          'Programming Language :: Python :: 3',
      ],
      install_requires   = [
      'jupyter>=1.0.0',
      ],
  )
  
  def main():
      setup(**setup_args)
  
  if __name__ == '__main__':
      main()
  
subject: Simplify setup.py import