24 lines
754 B
Python
24 lines
754 B
Python
from os.path import join
|
|
import warnings
|
|
import numpy
|
|
import sys
|
|
|
|
def configuration(parent_package='', top_path=None):
|
|
from numpy.distutils.misc_util import Configuration
|
|
from numpy.distutils.system_info import get_info
|
|
from numpy.distutils.system_info import get_standard_file
|
|
from numpy.distutils.system_info import BlasNotFoundError
|
|
|
|
config = Configuration('sparse', parent_package, top_path)
|
|
|
|
config.add_extension('_preprocessing',
|
|
sources=[join('src', '_preprocessing.c')],
|
|
include_dirs=[numpy.get_include()]
|
|
)
|
|
|
|
return config
|
|
|
|
if __name__ == '__main__':
|
|
from numpy.distutils.core import setup
|
|
setup(**configuration(top_path='').todict())
|