summaryrefslogtreecommitdiff
path: root/mesonbuild/modules/python3.py
Commit message (Collapse)AuthorAgeFilesLines
* split program related classes and functions out of dependenciesDylan Baker2021-03-191-3/+4
| | | | | | Dependencies is already a large and complicated package without adding programs to the list. This also allows us to untangle a bit of spaghetti that we have.
* mass rewrite of string formatting to use f-strings everywhereEli Schwartz2021-03-041-1/+1
| | | | performed by running "pyupgrade --py36-plus" and committing the results
* Fix legacy env var support with crossJohn Ericson2020-03-231-1/+1
| | | | Fix #3969
* Remove cross_info; cross file is parsed up front and discardedJohn Ericson2019-01-021-4/+5
|
* modules/python3: allow specifying in the native fileDylan Baker2018-11-141-1/+4
|
* Print warning when using deprecated 'python3' moduleXavier Claessens2018-10-071-1/+2
|
* Remove permittedSnippetKwargs, snippets are not specialNirbheek Chauhan2018-07-021-3/+2
| | | | | All we needed to do was change _get_callee_args() to also support snippets.
* Convert Gnome module to use find_program from interpreter.Jussi Pakkanen2018-04-151-4/+4
|
* Remove duplicated list of known kwargs for build targetsXavier Claessens2018-04-031-5/+2
|
* Fix flake8 'imported but unused' reportsJon Turney2018-03-031-1/+0
| | | | | | | | | | | | | | | | $ flake8 | grep F401 ./meson.py:17:1: F401 'mesonbuild.mesonlib' imported but unused ./meson.py:18:1: F401 'locale' imported but unused ./run_unittests.py:24:1: F401 'sys' imported but unused ./mesonbuild/minit.py:2:1: F401 'pyclbr.Function' imported but unused ./mesonbuild/minit.py:18:1: F401 'os' imported but unused ./mesonbuild/backend/vs2010backend.py:15:1: F401 'sys' imported but unused ./mesonbuild/backend/xcodebackend.py:19:1: F401 'sys' imported but unused ./mesonbuild/dependencies/ui.py:20:1: F401 'shutil' imported but unused ./mesonbuild/modules/python3.py:15:1: F401 'sys' imported but unused ./mesonbuild/modules/unstable_icestorm.py:15:1: F401 '..compilers' imported but unused ./mesonbuild/modules/unstable_icestorm.py:15:1: F401 '..mlog' imported but unused ./test cases/common/98 gen extra/srcgen3.py:3:1: F401 'os' imported but unused
* Changed code to use detected executables rather than hardcoding sys.executable.Jussi Pakkanen2017-11-201-1/+1
|
* flake8: Clean up complained-about unused importsLuke Shumaker2017-09-211-1/+2
| | | | | | | | | | | | | | | | | | | | | This also adds a "# noqa: F401" comment on an unused "import lzma", which we are using it in a try/except block that is being used to check if the lzma module is importable; of course it is unused. v2: This turned out to be a little tricky. mesonbuild/modules/__init__.py had the "unused" import: from ..interpreterbase import permittedKwargs, noKwargs However, that meant that the various modules could do things like: from . import noKwargs # "." is "mesonbuild.modules" Which breaks when you remove __init__.py's "unused" import. I could have tagged that import with "# noqa: F401", but instead I chose to have each of the module import directly from "..interpreterbase" instead of ".".
* python3: Add tests for platform-dependant paths and cover include pathGuillaume Poirier-Morency2017-08-171-1/+1
|
* python3: Fix 'sysconfig_path' for platform-dependant pathsGuillaume Poirier-Morency2017-08-151-1/+1
| | | | | Include 'platbase' for stripping the prefix for 'platlib' and 'platinclude'. This is necessary for installing platform-dependant Python modules such as GI overrides.
* Converted some modules.Jussi Pakkanen2017-06-261-4/+9
|
* python3: Add sysconfig_path() methodPatrick Griffis2017-03-301-0/+14
| | | | | This returns the value of sysconfig paths, useful for installing modules for example.
* python3: Add language_version() methodPatrick Griffis2017-03-301-0/+8
|
* Add .find_python() method. Supersedes #777.Jussi Pakkanen2017-01-091-1/+7
|
* There are two different kinds of extensions: modules that create newJussi Pakkanen2017-01-091-5/+8
| | | | objects directly and snippets that just call into interpreter methods.
* Created a Python 3 module for simpler building of Python extension modules.Jussi Pakkanen2017-01-091-0/+40