old_contents: # -*- coding: UTF-8 -*-
  #! /usr/bin/python
  
  import sys
  from setuptools import setup, find_packages
  import pyccel
  
  NAME    = 'pyccel'
  VERSION = pyccel.__version__
  AUTHOR  = 'Ahmed Ratnani'
  EMAIL   = 'ahmed.ratnani@ipp.mpg.de'
  URL     = 'https://github.com/ratnania/pyccel'
  DESCR   = 'Python extension language using accelerators.'
  KEYWORDS = ['math']
  LICENSE = "LICENSE"
  
  setup_args = dict(
      name                 = NAME,
      version              = VERSION,
      description          = DESCR,
      long_description     = open('README.rst').read(),
      author               = AUTHOR,
      author_email         = EMAIL,
      license              = LICENSE,
      keywords             = KEYWORDS,
      url                  = URL,
  )
  
  # ...
  packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
  # ...
  
  # TODO bug: install textx binary when textx is added to install_requires
  #install_requires = ['numpy', 'sympy', 'textx']
  install_requires = ['numpy', 'sympy']
  # ...
  
  def setup_package():
      setup(packages=packages, \
            include_package_data=True, \
            install_requires=install_requires, \
            entry_points={'console_scripts': ['pyccel = pyccel.commands.console:pyccel']}, \
            **setup_args)
  
  if __name__ == "__main__":
      setup_package()
  
new_contents: # -*- coding: UTF-8 -*-
  #! /usr/bin/python
  
  import sys
  from setuptools import setup, find_packages
  import pyccel
  
  NAME    = 'pyccel'
  VERSION = pyccel.__version__
  AUTHOR  = 'Ahmed Ratnani'
  EMAIL   = 'ahmed.ratnani@ipp.mpg.de'
  URL     = 'https://github.com/ratnania/pyccel'
  DESCR   = 'Python extension language using accelerators.'
  KEYWORDS = ['math']
  LICENSE = "LICENSE"
  
  setup_args = dict(
      name                 = NAME,
      version              = VERSION,
      description          = DESCR,
      long_description     = open('README.rst').read(),
      author               = AUTHOR,
      author_email         = EMAIL,
      license              = LICENSE,
      keywords             = KEYWORDS,
      url                  = URL,
  )
  
  # ...
  packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
  # ...
  
  # ...
  install_requires = ['numpy', 'sympy']
  
  try:
      import textx
  except:
      install_requires += ['textx']
  # ...
  
  def setup_package():
      setup(packages=packages, \
            include_package_data=True, \
            install_requires=install_requires, \
            entry_points={'console_scripts': ['pyccel = pyccel.commands.console:pyccel']}, \
            **setup_args)
  
  if __name__ == "__main__":
      setup_package()
  
subject: install textx if not available