summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2015-12-16STY: Style fixes for .travis.yml and travis-upload-wheel.shCharles Harris1-5/+7
* shell script style fixes inspired by google shell style guide https://google.github.io/styleguide/shell.xml * .travis.yml longline breaking tested with http://yaml-online-parser.appspot.com/
2015-12-16TST: Clean up travis-test and make it work with current travis ci.Charles Harris1-52/+79
Travis ci is migrating to GCI and the 32 bit tests broke in the process. This cleans up the tools/travis-test script, fixes it for current travis, and changes the 32 bit test to use python 2.7 in order to turn up errors involving python long integers. In preparation for dropping Python 3.2 and 3.3, the USE_DEBUG test is run in the travis ci trusty beta so that python3 defaults to 3.4.
2015-12-14CI: run benchmark suite in travis-CIPauli Virtanen1-0/+11
This should ensure the suite stays in working condition, not to produce reliable timing information.
2015-12-10ENH deploy dev wheels to rackspaceOlivier Grisel2-3/+16
2015-12-05MAINT: Include from __future__ boilerplate in some files missing it.Charles Harris1-0/+2
Some newer *.py files are missing the `from __future__` boilerplate that helps assure Python2 and Python3 compatibility.
2015-11-26Merge pull request #6726 from ↵Charles Harris1-1/+1
charris/fix-bugs-exposed-by-relaxed-stride-rollback Fix bugs exposed by relaxed stride rollback
2015-11-25TST: Fix travis-ci test for numpy wheels.Charles Harris1-1/+1
2015-11-24MAINT: enable Werror=vla in travisJulian Taylor1-4/+4
avoids issues with stone age compilers like MSVC
2015-11-04BUG: Fix swig make_fortran function.Charles Harris1-1/+1
The function was calling PyArray_FromArray with NPY_FORTRANORDER instead of NPY_ARRAY_F_CONTIGUOUS. The first is of type NPY_ORDER and the second is a flag. Closes #6618. [ci skip]
2015-11-01BUG: Fix use of PyArray_ISFORTRAN in numpy.i.Charles Harris1-1/+1
PyArray_ISFORTRAN was used to implement array_is_fortran in numpy.i when what was wanted was PyArray_IS_F_CONTIGUOUS. The difference is that PyArray_ISFORTRAN will return False if the array is c_contiguous. Previous to relaxed stride checking this did not matter, but currently arrays with ndim > 1 may be both C and Fortran contiguous and that results in errors when PyArray_ISFORTRAN is mistakenly used to check for Fortran contiguity.
2015-09-02typo in numpy.ijschueller1-1/+1
2015-08-19MAINT,TST: Remove Bento from the travis ci testing.Charles Harris1-35/+1
2015-08-05BLD: Speed up up Travis jobs by running on container-based infrastructureAlex Willmer1-8/+1
All jobs currently run on Travis's legacy infrastructure - which supports sudo. The newer container-based infrastructure is faster, but doesn't allow sudo. This patch - sets sudo=false for all jobs, except the chroot job - uses Travis's apt addon to install all packages - installs eatmydata for all jobs to reduce disk IO - removes the tmpfs workaround for chroot builds
2015-07-03TST: fail tests on compiler warningsJulian Taylor1-2/+11
2015-05-25New typemap for in-place arrays of arbitrary number of dimensions:Tom Krauss8-26/+394
(DATA_TYPE* INPLACE_ARRAY_FLAT, DIM_TYPE DIM_FLAT) Added unittests, updated documentation.
2015-05-07MAINT: switch waf download to https://github.com/numpy/numpy-vendorRalf Gommers1-1/+1
Follow-up of gh-5829, which got merged too early.
2015-05-03Merge pull request #5829 from rgommers/bento-ciCharles Harris1-1/+1
TST: re-enable TravisCI testing with Bento.
2015-05-03TST: re-enable TravisCI testing with Bento.Ralf Gommers1-1/+1
Disabling was done in gh-5708, due to the Waf download site being down for a while.
2015-04-30TEST: add module to test installed scriptsMatthew Brett1-3/+10
Module tests whether we can run f2py and return correct version. Skip this test when running in-place (we don't install f2py in that case). Use our own virtualenvs in travis-ci to avoid picking up travis' numpy.
2015-03-18DOC: put a copy of the text in LICENSE.txt into tools/swig/numpy.iRalf Gommers1-0/+34
Reason: numpy.i is supposed to be copied, not used from within an installed Numpy version. Closes gh-5690 [ci skip]
2015-02-15Correct exit code if number of errors % 256 == 0Chris Lamb7-7/+7
For example, we had 256 errors (etc.) our process will exit with a successful error code which is incorrect and/or misleading. Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2015-02-13Use correct #ifdef __cplusplus guard to include std_complex.iMichele Vallisneri1-2/+2
2014-11-07ENH: added std::complex support to numpy.iGlen Mabey7-12/+333
numpy.i now includes ready-made typemaps for std::complex<float> and std::complex<double> . Tests were added to testArray using a newly defined ArrayZ class.
2014-10-28ENH: support parallel compilation of extensionsJulian Taylor1-0/+3
Allow extensions using numpy.distutils to compile in parallel. By passing `--jobs=n` or `-j n` to `setup.py build` the compilation of extensions is now performed in `n` parallel processes. Additionally the environment variable NPY_NUM_BUILD_JOBS is used as the default value, if its unset the default is serial compilation. The parallelization is limited to within the files of an extension, so only numpy multiarraymodule really profits but its still a nice improvement when you have 2-4 cores. Unfortunately Cython will not profit at all as it tends to build one module per file.
2014-10-04Merge pull request #5149 from charris/fix-ma-docs-for-OO-optionJulian Taylor1-0/+5
BUG: Make numpy import when run with Python flag '-OO
2014-10-04TST: Add test with python flag -OO.Charles Harris1-0/+5
2014-09-04MAINT: Update waf to 1.7.16Charles Harris1-3/+3
2014-07-06Merge pull request #4671 from charris/prepare-1.10-develCharles Harris1-1/+1
MAINT: start 1.10-devel.
2014-07-05BUG: disable garbage collector during memory allocation hookJulian Taylor1-0/+10
When a cython object contains numpy arrays the pure python allocation hook can trigger during cythons __dealloc__ method and trigger a second deletion of the object currently being deleted. To minimize the probabily that that happens disable the garbage collector during the hook. As this involves python calls it is still possible that a double delete occurs but chances are lowered, a proper solution would be C only hook like python 3.4 tracemalloc module. Closes gh-4834
2014-06-16Fix typemap for Fortran ordered array inputAdam Reeve1-3/+3
The typemaps with size parameters after the array pointer were correct, but the typemaps with size parameters before the array pointer created arrays with C ordering.
2014-06-04BLD: add a simple python file to build cpucaps.dllJulian Taylor2-0/+17
using scons seems to fail with wine 1.6, but one only needs to run three commands so its simpler to just put these into a script instead of trying to debug scons.
2014-05-26BUG: Fix missing fragment in ARGOUTVIEWM typemaps.David Froger1-18/+18
The argout typemaps of all the ARGOUTVIEWM typemap suites make use of the free_cap function, defined in the NumPy_Utilities fragment, which was not listed in the fragment argument of the typemaps. As a result, the free_cap function is not included in the source generated code by SWIG, and the code do not compile (unless another typemap including the missing fragment has been used).
2014-05-11Merge pull request #4662 from matthew-brett/cythonize-for-wheelsRalf Gommers1-1/+7
BUG: cythonize sources for wheel build
2014-05-09TST: update package list for chroot buildJulian Taylor1-1/+2
travis boxes are again badly out of date
2014-05-06MAINT: Make NPY_RELAXED_STRIDE_CHECKING true by default.Charles Harris1-1/+1
2014-05-04TST: add travis test for wheel build and installMatthew Brett1-1/+7
Add travis build that builds and installs wheel, runs tests from installed wheel.
2014-04-24MAINT: annotate reference stealing and burrowed refs in multiarrayJulian Taylor1-1/+1
allows for better static analysis report with e.g. cpychecker
2014-04-05BLD: remove cython c source from gitJulian Taylor2-1/+200
Instead generate at build time. The generated sources are still part of the sdist. tools/cythonize.py is copied from SciPy with small changes to the configuration.
2014-03-12STY: Whitespace patrol on numpy.i.Charles Harris1-6/+6
2014-03-12MAINT: Move doc/swig to tools/swig.Charles Harris36-0/+7361
Also update MANIFEST.in and documentation to reflect the move. The discussion of this change is at #2384. Closes #2384. Closes #4374.
2014-03-06TST: work around outdated travis boxesJulian Taylor1-0/+1
run manual apt-get update to pick up the latest py3 security update
2014-02-25TST: switch i386 build to python3.4 defaulting ubuntu 14.04Julian Taylor1-3/+3
to do that fix a missing $DIST variable usage in the test script
2014-02-13TST: bootstrap chroot in tmpfsJulian Taylor1-0/+3
during bootstrap eatmydata is not available in the chroot so it takes a significant time. Avoid this by placing the whole chroot in a tmpfs ramdisk.
2014-01-24TST: fail on declaration-after-statement in travis testJulian Taylor1-1/+3
required for windows compilers
2014-01-16TST: add travis test using python-dbgJulian Taylor1-0/+13
python-dbg adds couple extra asserts on reference counts, memory allocation and also enables a few numpy internal asserts.
2014-01-11TST: run 32 bit test with python3Julian Taylor1-6/+11
2014-01-03MAINT: enable verbose bento buildJulian Taylor1-1/+1
2014-01-03TST: add 32 bit travis testsJulian Taylor1-0/+104
Implemented by setting up a chroot in the travis VM and moving all the test logic, including bento build, to a single script. This is still reasonable fast, about twice as slow as the normal tests. When Travis updates to a newer OS it can be replaced by standard cross compiling.
2013-09-16MAINT: update release scripts for building OS X binaries.Ralf Gommers1-1/+1
Works with Python 3.x now that bdist_mpkg is ported (thanks @matthew-brett).
2013-08-18STY: Giant comma spacing fixup.Charles Harris2-3/+3
Run the 2to3 ws_comma fixer on *.py files. Some lines are now too long and will need to be broken at some point. OTOH, some lines were already too long and need to be broken at some point. Now seems as good a time as any to do this with open PRs at a minimum.