summaryrefslogtreecommitdiff
path: root/numpy/distutils/npy_pkg_config.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: revise OSError aliases (IOError, EnvironmentError)Mike Taves2021-09-021-2/+2
|
* MAINT: cleanup unused imports; avoid redefinition of importsMike Taves2020-02-061-1/+0
| | | | | | | * 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] Cleanup python2 sys.version checksSeth Troisi2020-01-201-4/+1
|
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-051-2/+2
| | | | | | | Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python.
* 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: Remove unnecessary backslashes when not needed.MSeifert042019-07-021-1/+1
| | | | See also: #13880
* MAINT: Use list and dict comprehension when possible (#12445)Roman Yurchak2018-12-011-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use list comprehension * More list comprehension migration * Revert key copying in dict * A few more fixes * More reverts * Use dict comprehension * Fix dict comprehension * Address review comments * More review comments * Fix for empty unpacking of zip(* * Revert zip(* unpacking altogether * Fix dict copying * More simplifications
* MAINT: remove unused stdlib importsEmil Hessman2018-09-301-2/+2
|
* MAINT: remove redundant importsmattip2018-09-091-1/+0
|
* DEP: Fix escaped string characters deprecated in Python 3.6.Charles Harris2016-12-141-2/+2
| | | | | | | In Python 3.6 a number of escape sequences that were previously accepted -- for instance "\(" that was translated to "\\(" -- are deprecated. To retain the previous behavior either raw strings must be used or the backslash must be properly escaped itself.
* BLD: fix configparser.InterpolationSyntaxErrorSorin Sbarnea2016-04-281-7/+3
| | | | Closes #7572 inability to install in virtualenvs with percent in their path.
* DOC: Use print only as function when print_function is imported from __future__gfyoung2015-12-191-1/+1
| | | | Closes gh-6863.
* MAINT: list litteralRémy Léone2015-11-071-2/+1
|
* Fixed issue: SciPy can't be build in case, if python was installed intoDmitry Zagorny2015-09-151-28/+15
| | | | folder with whitespaces.
* Revert "Merge pull request #4421 from meltingwax/meltingwax/4382"Daniel da Silva2014-03-051-7/+7
| | | | Caused SciPy tests to fail when built with this NumPy.
* BUG: Fix support for builds in dirs with whitespaceDaniel da Silva2014-03-051-7/+7
| | | | | | Add escaping and quoting of dirs and enabled POSIX support in lexer. Closes #4382.
* 2to3: apply `dict` fixer.Charles Harris2013-04-061-2/+2
| | | | | | | | | | | | | | | In Python3 `dict.items()`, `dict.keys()`, and `dict.values()` are iterators. This causes problems when a list is needed so the 2to3 fixer explicitly constructs a list when is finds on of those functions. However, that is usually not necessary, so a lot of the work here has been cleaning up those places where the fix is not needed. The big exception to that is the `numpy/f2py/crackfortran.py` file. The code there makes extensive use of loops that modify the contents of the dictionary being looped through, which raises an error. That together with the obscurity of the code in that file made it safest to let the `dict` fixer do its worst. Closes #3050.
* 2to3: Apply `print` fixer.Charles Harris2013-04-061-6/+6
| | | | | | | Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
* 2to3: Apply `imports` fixer.Charles Harris2013-04-021-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The `imports` fixer deals with the standard packages that have been renamed, removed, or methods that have moved. cPickle -- removed, use pickle commands -- removed, getoutput, getstatusoutput moved to subprocess urlparse -- removed, urlparse moved to urllib.parse cStringIO -- removed, use StringIO or io.StringIO copy_reg -- renamed copyreg _winreg -- renamed winreg ConfigParser -- renamed configparser __builtin__ -- renamed builtins In the case of `cPickle`, it is imported as `pickle` when python < 3 and performance may be a consideration, but otherwise plain old `pickle` is used. Dealing with `StringIO` is a bit tricky. There is an `io.StringIO` function in the `io` module, available since Python 2.6, but it expects unicode whereas `StringIO.StringIO` expects ascii. The Python 3 equivalent is then `io.BytesIO`. What I have done here is used BytesIO for anything that is emulating a file for testing purposes. That is more explicit than using a redefined StringIO as was done before we dropped support for Python 2.4 and 2.5. Closes #3180.
* 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: Put `from __future__ import division in every python file.Charles Harris2013-03-011-0/+2
| | | | | | | | 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.
* 2to3: Change use 'has_key' to 'key in'.Charles Harris2013-02-261-4/+4
| | | | Part of the 2to3 project.
* DEP: fix deprecation warning from using SafeConfigParser with Python 3.2.rgommers2011-03-021-2/+7
|
* BUG: do not add empty string when interpolating values in LibraryInfo.David Cournapeau2010-09-051-1/+2
| | | | | | This adds superflous space in strings, which cause issues when executing commands outside shell control (e.g. '-I/usr/include ' will not add '/usr/include' but '/usr/include ' into the search path of compilers)
* DOC: wiki merge, add distutils.npy_pkg_config.read_config docstring.rgommers2010-07-311-2/+40
|
* BUG: fix escaping of pkgdir on windows.David Cournapeau2009-12-121-1/+1
|
* ENH: automatically translate pkgdir in .ini file.David Cournapeau2009-12-121-0/+12
|
* Py3k: fix unixccompiler + exec_command exception/print stmts.David Cournapeau2009-12-031-6/+10
|
* first set of checkins from the doc editorJarrod Millman2009-11-131-0/+90
|
* Fix escaping backslash when parsing .ini files.David Cournapeau2009-09-191-3/+8
| | | | | We need to escape them in variable substitution and interpolation to make it work on windows where \ is the path separator.
* BUG: fix npy_pkg_config_path variable escaping on windows.David Cournapeau2009-08-271-1/+1
| | | | | When dealing with path on windows, the backshlashes need to be escaped: quick replace to avoid trouble when dealing with variables.
* Fix npy_pkg_config script.David Cournapeau2009-07-261-2/+2
|
* Fix returned dict by get_info so that it works with add_extension.David Cournapeau2009-07-261-3/+3
|
* Fix get_config.David Cournapeau2009-07-261-6/+6
|
* Raise a PkgNotFound exception in get_info if the package is not found.David Cournapeau2009-07-261-2/+10
|
* Add parse_flags function + some unit tests.David Cournapeau2009-07-261-1/+35
|
* Fix whitespaces issues.David Cournapeau2009-07-261-3/+3
|
* Handle NPY_PKG_CONFIG_PATH in our fake pkg-config emulator.David Cournapeau2009-07-261-1/+6
|
* Handle variable definition in pkg-config emulator.David Cournapeau2009-07-261-0/+12
|
* Deal with multiple locations for one filename.David Cournapeau2009-07-261-12/+22
|
* Implement a trivial cache mechanism for LibraryInfo instances creation.David Cournapeau2009-07-261-5/+16
|
* Better design for LibraryInfo, to handle variables redefinition and ↵David Cournapeau2009-07-261-32/+65
| | | | requirements.
* we now implement cflags, libs, variables handling and basic depends - the ↵David Cournapeau2009-07-261-53/+117
| | | | code is a mess, though.
* Start working on npy_pkg_config, to handle core libraries build issues ↵David Cournapeau2009-07-261-0/+129
through a pkg-config-like file.