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

from distutils.core import setup
# from distutils.command.build_clib import build_clib
from distutils.extension import Extension
# from setuptools import setup

try:
    from Cython.Build import cythonize
except ImportError:
    has_cython = False
else:
    has_cython = True

from os import path
import os
from codecs import open
from glob import glob
import numpy
from pathlib import Path


here = Path(__file__).parent
src_dir = here.joinpath('src')

c_source_files = [str(p) for p in src_dir.glob("base/*.cc")] \
               + [str(p) for p in src_dir.glob("module/*.cc")]

if os.name == 'nt':
    cflags = ['/O2', '/std:c++17']
else:
    cflags = ['-O2', '-std=c++17']

if has_cython:
    ext_modules = cythonize([Extension(
            "hyper_canny.chc",
            sources=c_source_files + ["hyper_canny/chc.pyx"],
            include_dirs=[numpy.get_include(), './src', './include'],
            extra_compile_args=cflags,
            language="c++")])
else:
    ext_modules = [Extension(
            "hyper_canny.chc",
            sources=c_source_files + ["hyper_canny/chc.cpp"],
            include_dirs=[numpy.get_include(), './src', './include'],
            extra_compile_args=cflags,
            language="c++")]


# Get the long description from the README file
here2=str(here)
print(here)
print(here2)
with open(here / 'README.md', encoding='utf-8') as f:
    long_description = f.read()

setup(
    name='HyperCanny',
    version='0.0.1',
    description='High-dimensional (>2) edge finding.',
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/abrupt-climate/hyper-canny',
    packages=['hyper_canny'],

    classifiers=[
        'License :: OSI Approved :: Apache Software License',
        'Intended Audience :: Science/Research',
        'Environment :: Console',
        'Development Status :: 4 - Beta',
        'Programming Language :: C++',
        'Programming Language :: Python :: 3 :: Only',
        'Topic :: Scientific/Engineering'],

    install_requires=[
            'numpy'
        ],<commit_msg>desperate attempt to fix setup.py 4<commit_after>#!/usr/bin/env python

from distutils.core import setup
# from distutils.command.build_clib import build_clib
from distutils.extension import Extension
# from setuptools import setup

try:
    from Cython.Build import cythonize
except ImportError:
    has_cython = False
else:
    has_cython = True

from os import path
import os
from codecs import open
from glob import glob
import numpy
from pathlib import Path


here = Path(__file__).parent
src_dir = here.joinpath('src')

c_source_files = [str(p) for p in src_dir.glob("base/*.cc")] \
               + [str(p) for p in src_dir.glob("module/*.cc")]

if os.name == 'nt':
    cflags = ['/O2', '/std:c++17']
else:
    cflags = ['-O2', '-std=c++17']

if has_cython:
    ext_modules = cythonize([Extension(
            "hyper_canny.chc",
            sources=c_source_files + ["hyper_canny/chc.pyx"],
            include_dirs=[numpy.get_include(), './src', './include'],
            extra_compile_args=cflags,
            language="c++")])
else:
    ext_modules = [Extension(
            "hyper_canny.chc",
            sources=c_source_files + ["hyper_canny/chc.cpp"],
            include_dirs=[numpy.get_include(), './src', './include'],
            extra_compile_args=cflags,
            language="c++")]


# Get the long description from the README file
here2=str(here)
print(here)
print(here2)
with open(here2 / 'README.md', encoding='utf-8') as f:
    long_description = f.read()

setup(
    name='HyperCanny',
    version='0.0.1',
    description='High-dimensional (>2) edge finding.',
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/abrupt-climate/hyper-canny',
    packages=['hyper_canny'],

    classifiers=[
        'License :: OSI Approved :: Apache Software License',
        'Intended Audience :: Science/Research',
        'Environment :: Console',
        'Development Status :: 4 - Beta',
        'Programming Language :: C++',
        'Programming Language :: Python :: 3 :: Only',
        'Topic :: Scientific/Engineering'],

    install_requires=[
            'numpy'
        ],
{'fraction_non_alphanumeric': 0.14563106796116504, 'fraction_numerical': 0.007577551503670376, 'mean_word_length': 2.9293023255813955, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4371444', 'n_tokens_mistral': 1366, 'n_tokens_neox': 1333, 'n_words': 317}