summaryrefslogtreecommitdiff
path: root/numpy/distutils/core.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: LGTM.com recommendation: Unused importDimitri Papadopoulos2021-10-071-1/+1
| | | | | | Import of 'histogram' is not used. Import of 'histogramdd' is not used. Import of 'textwrap' is not used.
* MAINT: cleanup unused imports; avoid redefinition of importsMike Taves2020-02-061-2/+2
| | | | | | | * Cleanup unused imports (F401) of mostly standard Python modules, or some internal but unlikely referenced modules * Where internal imports are potentially used, mark with noqa * Avoid redefinition of imports (F811)
* MAINT: resolve pyflake F403 'from module import *' usedMike Taves2020-01-231-1/+1
| | | | | | * For external modules, resolve imported members * Most internal relative modules were ignored or marked noqa: F403 * Convert a few internal absolute imports to relative imports
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-031-2/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* MAINT: avoid modifying mutable default valuesEmil Hessman2018-09-291-1/+3
|
* ENH: Add stacklevel to all (or almost all) our function callsSebastian Berg2016-09-021-5/+10
|
* STY: Giant comma spacing fixup.Charles Harris2013-08-181-4/+4
| | | | | | | 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.
* 2to3: Apply `print` fixer.Charles Harris2013-04-061-1/+1
| | | | | | | Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
* 2to3: Use absolute imports.Charles Harris2013-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new import `absolute_import` is added the `from __future__ import` statement and The 2to3 `import` fixer is run to make the imports compatible. There are several things that need to be dealt with to make this work. 1) Files meant to be run as scripts run in a different environment than files imported as part of a package, and so changes to those files need to be skipped. The affected script files are: * all setup.py files * numpy/core/code_generators/generate_umath.py * numpy/core/code_generators/generate_numpy_api.py * numpy/core/code_generators/generate_ufunc_api.py 2) Some imported modules are not available as they are created during the build process and consequently 2to3 is unable to handle them correctly. Files that import those modules need a bit of extra work. The affected files are: * core/__init__.py, * core/numeric.py, * core/_internal.py, * core/arrayprint.py, * core/fromnumeric.py, * numpy/__init__.py, * lib/npyio.py, * lib/function_base.py, * fft/fftpack.py, * random/__init__.py Closes #3172
* 2to3:DEP: Remove interactive setup and gnu compiler configuration.Charles Harris2013-03-051-16/+0
| | | | | | | | | | | | | | | | | | | | | | These havn't been deprecated, but I think few have heard of them, much less used them. Before this change, running setup.py without any arguments would result in interactive help. This patch removes that interactive help and lets setup print its usual list of commands and options. All the script uses of the numpy/distutils/fcompiler compilers look quite broken to me, but I have tried to maintain compatibility with the earlier version of gnu.py after the removal of `raw_input`. These removals solve an incompatibility between Python3 and Python2. The current interactive setup help uses `raw_input`, which has been removed in python3 and replaced by `input`. However, python2 already has an `input` that has different semantics. Rather than deal with this, I think it simpler to keep both `raw_input` and `input` out of numpy. Closes #3063 Closes #3079
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-011-0/+1
| | | | | | | | This should be harmless, as we already are division clean. However, placement of this import takes some care. In the future a script can be used to append new features without worry, at least until such time as it exceeds a single line. Having that ability will make it easier to deal with absolute imports and printing updates.
* DEP: Remove scons related files and code.Charles Harris2013-01-131-3/+1
| | | | | | | | | This removes files and code supporting scons builds. After this change numpy will only support builds using distutils or bento. The removal of scons has been discussed on the list several times and a decision has been made that scons support is no longer needed. This was originally discussed for numpy 1.7 and because the distutils and bento methods are still available we are skipping the usual deprecation period.
* numpy.distutils.core importable from py3.David Cournapeau2009-12-031-5/+5
|
* Add a install_clib command.David Cournapeau2009-07-261-1/+3
|
* Comment out NotImplemented error when using setup tools.Travis Oliphant2008-03-221-1/+1
|
* Add scons command to numpy distutils.David Cournapeau2008-01-061-1/+2
|
* Use a custom NumpyDistribution instead of distutils Distribution, to handleDavid Cournapeau2008-01-061-1/+6
| | | | | scons scripts.
* Make the 'develop' command from setuptools run build_src --inplace in ↵Robert Kern2007-12-121-2/+4
| | | | addition to build_ext --inplace. This allows SWIG wrappers to be correctly generated.
* use 'in' keyword to test dictionary membershipJarrod Millman2007-11-281-6/+6
|
* ran reindent.py to clean up whitespaceJarrod Millman2007-10-291-14/+14
|
* Using the in operator to find substrings. It is shorter and easier to ↵Jarrod Millman2007-10-291-1/+1
| | | | understand.
* Undo changeset 3839: interactive support is being used (this convinient on ↵Pearu Peterson2007-06-011-0/+17
| | | | windows where one can click on setup.py and build the numpy or whatever package in 2 keystrokes).
* Remove interactive support. No one uses it.cookedm2007-05-281-17/+0
|
* merge from distutils-revamp branch (step 1)cookedm2007-05-251-31/+30
|\ | | | | | | | | | | - minor cleanups - find_executable returns None when no file found (instead of having to check with os.path.isfile)
| * Branch numpy.distutils to distutils-revampcookedm2006-07-061-219/+0
| |
* | added config to --fcompiler option unification method. introduced config_cc ↵Pearu Peterson2007-05-181-0/+1
| | | | | | | | for unifying --compiler options.
* | Use a try/finally instead of try/except Exception for cleanup in ↵cookedm2007-05-101-5/+3
| | | | | | | | numpy/distutils/core.py
* | Skip interactive mode when using script_args argument.Pearu Peterson2006-11-191-1/+1
|/
* Put back the test for bdist_egg when using setuptoolscookedm2006-06-281-0/+5
|
* Don't import setuptools by default, but do use it if it has been imported.cookedm2006-06-281-6/+5
| | | | The setupegg.py script can be used instead of setup.py to use setuptools.
* Fail with long traceback from setup before closing interactive session.Pearu Peterson2006-04-201-11/+11
|
* Fix interactive setup: hold the process until enter is pressed.Pearu Peterson2006-04-191-15/+14
|
* New feature: interactively set sys.argv when setup.py is called without ↵Pearu Peterson2006-04-191-1/+19
| | | | arguments. At the moment the feature only can show system/platform/fcompiler information..
* Fixed typo.Pearu Peterson2006-04-041-0/+1
|
* Reorg. code so that numpy.distutils could be used from cwd that contains ↵Pearu Peterson2006-04-011-1/+2
| | | | math.py.
* Introduced configuration kw argument to setup. This fixes long lasted long ↵Pearu Peterson2006-03-311-0/+66
| | | | configuration messages when setup command line has only help request or errors.
* When using setuptools, run the build_src command before egg_info (which is ↵cookedm2006-01-311-1/+2
| | | | | | | | run by the bdist_egg command). This means that python -c 'import setuptools; execfile("setup.py")' bdist_egg works fine, without having to add build_src in there.
* Misc cleanups + replace `a` with %r or repr(a)cookedm2006-01-311-20/+21
| | | | | Also replace some type checks with misc_util.is_sequence or misc_util.is_string or appropiate isinstance().
* Added data_files generator support - removed a piece of core.setup function.Pearu Peterson2006-01-271-10/+0
|
* Changed all references to scipy to numpyTravis Oliphant2006-01-041-21/+21
|
* Moved scipy directory to numpyTravis Oliphant2006-01-041-0/+138