<commit_before>#!/usr/bin/env python

# This file is part of fteproxy.
#
# fteproxy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# fteproxy is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with fteproxy.  If not, see <http://www.gnu.org/licenses/>.

from distutils.core import setup
from distutils.core import Extension

import sys
import os
if os.name == 'nt':
    import py2exe

with open('fte/VERSION') as fh:
    FTEPROXY_RELEASE = fh.read().strip()

fte_cDFA = Extension('fte.cDFA',
                     include_dirs=['fte',
                                   'thirdparty/re2',
                                   'thirdparty/gmp/include',
                                  ],
                     library_dirs=['thirdparty/re2/obj',
                                   'thirdparty/gmp/lib',
                                  ],
                     extra_compile_args=['-O3',
                                        #'-fstack-protector-all', # doesn't work on windows
                                        '-fPIE',
                                        ],
                     extra_link_args=['thirdparty/re2/obj/libre2.a',
                                      ],
                     libraries=['gmp',
                               ],
                     sources=['fte/rank_unrank.cc', 'fte/cDFA.cc'])

if sys.argv[1]=='py2exe':
    ext_modules = []
else:
    ext_modules = [fte_cDFA]

setup(name='Format-Transforming Encrypion (FTE)',
      console=['./bin/fteproxy'],
      zipfile=None,
      options={"py2exe": {
          "optimize": 2,
          "compressed": True,
          "bundle_files": 1,
      }
      },
      version=FTEPROXY_RELEASE,
      description='FTE',
      author='<NAME>',
      author_email='<EMAIL>',
      url='https://github.com/redjack/fte-proxy',<commit_msg>Issue #24: No need for "py2exe" params<commit_after>#!/usr/bin/env python

# This file is part of fteproxy.
#
# fteproxy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# fteproxy is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with fteproxy.  If not, see <http://www.gnu.org/licenses/>.

from distutils.core import setup
from distutils.core import Extension

import sys
import os
if os.name == 'nt':
    import py2exe

with open('fte/VERSION') as fh:
    FTEPROXY_RELEASE = fh.read().strip()

fte_cDFA = Extension('fte.cDFA',
                     include_dirs=['fte',
                                   'thirdparty/re2',
                                   'thirdparty/gmp/include',
                                  ],
                     library_dirs=['thirdparty/re2/obj',
                                   'thirdparty/gmp/lib',
                                  ],
                     extra_compile_args=['-O3',
                                        #'-fstack-protector-all', # doesn't work on windows
                                        '-fPIE',
                                        ],
                     extra_link_args=['thirdparty/re2/obj/libre2.a',
                                      ],
                     libraries=['gmp',
                               ],
                     sources=['fte/rank_unrank.cc', 'fte/cDFA.cc'])

if sys.argv[1]=='py2exe':
    ext_modules = []
else:
    ext_modules = [fte_cDFA]

setup(name='Format-Transforming Encrypion (FTE)',
      console=['./bin/fteproxy'],
      zipfile=None,
      options={"py2exe": {
      }
      },
      version=FTEPROXY_RELEASE,
      description='FTE',
      author='<NAME>',
      author_email='<EMAIL>',
      url='https://github.com/redjack/fte-proxy',
{'fraction_non_alphanumeric': 0.10592742844264143, 'fraction_numerical': 0.005634437683119224, 'mean_word_length': 1.6463923673226, 'pattern_counts': {'":': 5, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1704370', 'n_tokens_mistral': 1239, 'n_tokens_neox': 1203, 'n_words': 335}