<commit_before>import os
import sys
from setuptools import setup

# To use:
#	   python setup.py bdist --format=wininst

from flopy import __version__, __name__, __author__

#--trap someone trying to install flopy with python 3
if not sys.version_info[0] in [2, 3]:
    print "Sorry, Flopy not supported in your Python version"
    sys.exit(1) # return non-zero value for failure

reqs = [line.strip() for line in open('requirements.txt')]

long_description = ''
 
try:
   import pypandoc
   long_description = pypandoc.convert('README.md', 'rst')
except:
   pass  
       
setup(name=__name__,
      description='FloPy is a Python package to create, run, and post-process MODFLOW-based models.',
      long_description=long_description,  
      author=__author__,
      author_email='<EMAIL>, <EMAIL>, <EMAIL>, <EMAIL>, <EMAIL>, <EMAIL>, <EMAIL>, <EMAIL>',
      url='https://github.com/modflowpy/flopy/',
      license='New BSD',
      platforms='Windows, Mac OS-X',
      install_requires=reqs,
      packages=['flopy', 'flopy.modflow', 'flopy.modpath', 'flopy.mt3d', 'flopy.seawat', 'flopy.utils', 'flopy.plot'],
      package_data={'': ['requirements.txt']},
      include_package_data=True,
      # use this version ID if .svn data cannot be found
      version=__version__ )
<commit_msg>Revision to setup.py to provide some diagnostic information for people trying to install floppy with a Python version other than 2 or 3.<commit_after>import os
import sys
from setuptools import setup

# To use:
#	   python setup.py bdist --format=wininst

from flopy import __version__, __name__, __author__

#--trap someone trying to install flopy with something other
#  than python 2 or 3
if not sys.version_info[0] in [2, 3]:
    print('Sorry, Flopy not supported in your Python version')
    print('  Supported versions: 2 and 3')
    print('  Your version of Python: {}'.format(sys.version_info[0]))
    sys.exit(1) # return non-zero value for failure

reqs = [line.strip() for line in open('requirements.txt')]

long_description = ''
 
try:
   import pypandoc
   long_description = pypandoc.convert('README.md', 'rst')
except:
   pass  
       
setup(name=__name__,
      description='FloPy is a Python package to create, run, and post-process MODFLOW-based models.',
      long_description=long_description,  
      author=__author__,
      author_email='<EMAIL>, <EMAIL>, <EMAIL>, <EMAIL>, <EMAIL>, <EMAIL>, <EMAIL>, <EMAIL>',
      url='https://github.com/modflowpy/flopy/',
      license='New BSD',
      platforms='Windows, Mac OS-X',
      install_requires=reqs,
      packages=['flopy', 'flopy.modflow', 'flopy.modpath', 'flopy.mt3d', 'flopy.seawat', 'flopy.utils', 'flopy.plot'],
      package_data={'': ['requirements.txt']},
      include_package_data=True,
      # use this version ID if .svn data cannot be found
      version=__version__ )

{'fraction_non_alphanumeric': 0.12376406409819297, 'fraction_numerical': 0.006137061029662462, 'mean_word_length': 3.327433628318584, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6751969', 'n_tokens_mistral': 980, 'n_tokens_neox': 933, 'n_words': 272}