<commit_before># $Id$
#   
# PyGEOS distutils setup script
#
# Copyright 2004 <NAME>, <EMAIL>
#
# This is free software; you can redistribute and/or modify it under
# the terms of the GNU Lesser General Public Licence as published
# by the Free Software Foundation. 
# See the COPYING file for more information.
#
# ===========================================================================
#
# Test before installation
#
# $ python setup.py build
# $ python tests/runtests.py -v
# $ sudo python setup.py install
#
# ===========================================================================

from distutils.core import setup, Extension

# We're skipping the metadata for now

# the extension module, source was generated by SWIG from geos.i
#
# Note that until geos is ready to be installed, we're linking against
# the pre-installed library in source/geom/.libs.
extmod = Extension("_geos", ["geos_wrap.cxx"],
                   include_dirs = ["../../source/headers",
                                   "../../source/headers/geos"],
                   libraries = ["stdc++"],
                   extra_objects = ["../../source/geom/.libs/libgeos.a"])

# the python module, generated by SWIG from geos.i
pymod = "geos"

# The setup function
setup(name = "PyGEOS", ext_modules = [extmod], py_modules = [pymod])

<commit_msg>now supporting the win32 platform, thanks to Howard Butler<commit_after># $Id$
#   
# PyGEOS distutils setup script
#
# Copyright 2004 <NAME>, <EMAIL>
#
# This is free software; you can redistribute and/or modify it under
# the terms of the GNU Lesser General Public Licence as published
# by the Free Software Foundation. 
# See the COPYING file for more information.
#
# ===========================================================================
#
# Test before installation
#
# $ python setup.py build
# $ python tests/runtests.py -v
# $ sudo python setup.py install
#
# ===========================================================================

from distutils.core import setup, Extension
import sys

# the extension module, source was generated by SWIG from geos.i
#
# Note that until geos is ready to be installed, we're linking against
# the pre-installed library in source/geom/.libs.

if sys.platform=='win32':
    extmod = Extension('_geos', ['geos_wrap.cxx'],
                       include_dirs = ['../../source/headers',
                                       '../../source/headers/geos'],
                       libraries = ['geos'],
                       library_dirs=['../../source'],)

else:
    extmod = Extension('_geos', ['geos_wrap.cxx'],
                       include_dirs = ['../../source/headers',
                                       '../../source/headers/geos'],
                       libraries = ['stdc++'],
                       extra_objects = ['../../source/geom/.libs/libgeos.a'])

# the python module, generated by SWIG from geos.i
pymod = 'geos'

# The setup function
setup(name = 'PyGEOS',
      version = '2.1.1',
      description = 'Python SWIG interface for GEOS',
      url='http://geos.refractions.net',
      ext_modules = [extmod],
      py_modules = [pymod])


{'fraction_non_alphanumeric': 0.20936902485659656, 'fraction_numerical': 0.004780114722753346, 'mean_word_length': 2.7458233890214796, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '618790', 'n_tokens_mistral': 875, 'n_tokens_neox': 821, 'n_words': 273}