Skip to content

Commit

Permalink
BLD Use setuptools for building
Browse files Browse the repository at this point in the history
Anaconda seems to have issues with numpy.distutils. Since we do not rely
on any numpy specific functionality, we can use standard setuptools.
  • Loading branch information
luispedro committed Jul 14, 2014
1 parent 4288738 commit 65db311
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2013, Luis Pedro Coelho <luis@luispedro.org>
# Copyright (C) 2009-2014, Luis Pedro Coelho <luis@luispedro.org>
# vim: set ts=4 sts=4 sw=4 expandtab smartindent:
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -31,7 +31,6 @@
from sys import exit
exit(1)
import os
import numpy.distutils.core as numpyutils


exec(compile(open('mahotas/mahotas_version.py').read(),
Expand Down Expand Up @@ -70,7 +69,7 @@
'mahotas.features._zernike': ['mahotas/features/_zernike.cpp'],
}

ext_modules = [numpyutils.Extension(key, sources=sources, undef_macros=undef_macros, define_macros=define_macros) for key,sources in extensions.items()]
ext_modules = [setuptools.Extension(key, sources=sources, undef_macros=undef_macros, define_macros=define_macros) for key,sources in extensions.items()]

packages = setuptools.find_packages()

Expand Down Expand Up @@ -100,7 +99,7 @@
'License :: OSI Approved :: MIT License',
]

numpyutils.setup(name = 'mahotas',
setuptools.setup(name = 'mahotas',
version = __version__,
description = 'Mahotas: Computer Vision Library',
long_description = long_description,
Expand Down

0 comments on commit 65db311

Please sign in to comment.