John Ericson
2b22576fb6
Remove cross_info; cross file is parsed up front and discarded
6 years ago
Dylan Baker
091452f8cd
modules/python3: allow specifying in the native file
6 years ago
Xavier Claessens
047db1c64c
Print warning when using deprecated 'python3' module
6 years ago
Nirbheek Chauhan
817dcaa23b
Remove permittedSnippetKwargs, snippets are not special
...
All we needed to do was change _get_callee_args() to also support
snippets.
7 years ago
Jussi Pakkanen
bdb57cf62a
Convert Gnome module to use find_program from interpreter.
7 years ago
Xavier Claessens
cf0e997167
Remove duplicated list of known kwargs for build targets
7 years ago
Jon Turney
cd5dba5358
Fix flake8 'imported but unused' reports
...
$ 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
7 years ago
Jussi Pakkanen
9d67e5030b
Changed code to use detected executables rather than hardcoding sys.executable.
7 years ago
Luke Shumaker
4dbbb4884c
flake8: Clean up complained-about unused imports
...
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 ".".
7 years ago
Guillaume Poirier-Morency
2653000ac7
python3: Add tests for platform-dependant paths and cover include path
7 years ago
Guillaume Poirier-Morency
92e2e1e2d8
python3: Fix 'sysconfig_path' for platform-dependant paths
...
Include 'platbase' for stripping the prefix for 'platlib' and 'platinclude'.
This is necessary for installing platform-dependant Python modules such as GI overrides.
7 years ago
Jussi Pakkanen
80d665e8de
Converted some modules.
8 years ago
Patrick Griffis
a9c30ce8b5
python3: Add sysconfig_path() method
...
This returns the value of sysconfig paths, useful for
installing modules for example.
8 years ago
Patrick Griffis
b6e06dd80b
python3: Add language_version() method
8 years ago
Jussi Pakkanen
6ac9a8e738
Add .find_python() method. Supersedes #777 .
8 years ago
Jussi Pakkanen
fbabe8ad85
There are two different kinds of extensions: modules that create new
...
objects directly and snippets that just call into interpreter methods.
8 years ago
Jussi Pakkanen
24221d71cc
Created a Python 3 module for simpler building of Python extension modules.
8 years ago