<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/meson.git/meson.py, branch thinlto</title>
<subtitle>github.com: mesonbuild/meson.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/'/>
<entry>
<title>pathlib: Fix resolve() by overriding it in Python 3.5</title>
<updated>2020-10-04T08:45:48+00:00</updated>
<author>
<name>Daniel Mensinger</name>
<email>daniel@mensinger-ka.de</email>
</author>
<published>2020-09-29T15:36:00+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=1dfaccfd9129aa4ac24b46f0a9490b19ae59adc0'/>
<id>1dfaccfd9129aa4ac24b46f0a9490b19ae59adc0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>meson.py: sys.path requires str, not pathlib.Path</title>
<updated>2018-06-10T01:44:43+00:00</updated>
<author>
<name>Nirbheek Chauhan</name>
<email>nirbheek@centricular.com</email>
</author>
<published>2018-06-09T17:40:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=1b1c66d7bcb6e5676f36ac3f7c052c175949d663'/>
<id>1b1c66d7bcb6e5676f36ac3f7c052c175949d663</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Set the meson command to use when we know what it is</title>
<updated>2018-06-01T19:20:04+00:00</updated>
<author>
<name>Nirbheek Chauhan</name>
<email>nirbheek@centricular.com</email>
</author>
<published>2018-06-01T07:30:17+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=0a035dea6d0b1416fc76e323bbd7b0ab5a60a4af'/>
<id>0a035dea6d0b1416fc76e323bbd7b0ab5a60a4af</id>
<content type='text'>
Instead of using fragile guessing to figure out how to invoke meson,
set the value when meson is run. Also rework how we pass of
meson_script_launcher to regenchecker.py -- it wasn't even being used

With this change, we only need to guess the meson path when running
the tests, and in that case:

1. If MESON_EXE is set in the env, we know how to run meson
   for project tests.
2. MESON_EXE is not set, which means we run the configure in-process
   for project tests and need to guess what meson to run, so either
   - meson.py is found next to run_tests.py, or
   - meson, meson.py, or meson.exe is in PATH

Otherwise, you can invoke meson in the following ways:

1. meson is installed, and mesonbuild is available in PYTHONPATH:
   - meson, meson.py, meson.exe from PATH
   - python3 -m mesonbuild.mesonmain
   - python3 /path/to/meson.py
   - meson is a shell wrapper to meson.real
2. meson is not installed, and is run from git:
   - Absolute path to meson.py
   - Relative path to meson.py
   - Symlink to meson.py

All these are tested in test_meson_commands.py, except meson.exe since
that involves building the meson msi and installing it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of using fragile guessing to figure out how to invoke meson,
set the value when meson is run. Also rework how we pass of
meson_script_launcher to regenchecker.py -- it wasn't even being used

With this change, we only need to guess the meson path when running
the tests, and in that case:

1. If MESON_EXE is set in the env, we know how to run meson
   for project tests.
2. MESON_EXE is not set, which means we run the configure in-process
   for project tests and need to guess what meson to run, so either
   - meson.py is found next to run_tests.py, or
   - meson, meson.py, or meson.exe is in PATH

Otherwise, you can invoke meson in the following ways:

1. meson is installed, and mesonbuild is available in PYTHONPATH:
   - meson, meson.py, meson.exe from PATH
   - python3 -m mesonbuild.mesonmain
   - python3 /path/to/meson.py
   - meson is a shell wrapper to meson.real
2. meson is not installed, and is run from git:
   - Absolute path to meson.py
   - Relative path to meson.py
   - Symlink to meson.py

All these are tested in test_meson_commands.py, except meson.exe since
that involves building the meson msi and installing it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "mesonlib: handle meson exe wrappers"</title>
<updated>2018-05-31T10:10:10+00:00</updated>
<author>
<name>Nirbheek Chauhan</name>
<email>nirbheek@centricular.com</email>
</author>
<published>2018-05-31T10:10:10+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=f56b402a5b98fbb2c2f3af4ebdac3f53313c5ab1'/>
<id>f56b402a5b98fbb2c2f3af4ebdac3f53313c5ab1</id>
<content type='text'>
This reverts commit 0627e9d616dc311b7c9b0ef17301f680ac9e78a7.

Breaks installation: https://github.com/mesonbuild/meson/issues/3647

Will be restored once that can be fixed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 0627e9d616dc311b7c9b0ef17301f680ac9e78a7.

Breaks installation: https://github.com/mesonbuild/meson/issues/3647

Will be restored once that can be fixed.
</pre>
</div>
</content>
</entry>
<entry>
<title>mesonlib: handle meson exe wrappers</title>
<updated>2018-05-30T18:29:16+00:00</updated>
<author>
<name>Martin Kelly</name>
<email>mkelly@xevo.com</email>
</author>
<published>2018-04-24T23:57:18+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=0627e9d616dc311b7c9b0ef17301f680ac9e78a7'/>
<id>0627e9d616dc311b7c9b0ef17301f680ac9e78a7</id>
<content type='text'>
There are cases when it is useful to wrap the main meson executable with
a script that sets up environment variables, passes --cross-file, etc.
For example, in a Yocto SDK, we need to point to the right meson.cross
so that everything "just works", and we need to alter CC, CXX, etc. In
such cases, it can happen that the "meson" found in the path is actually
a wrapper script that invokes the real meson, which may be in another
location (e.g. "meson.real" or similar).

Currently, in such a situation, meson gets confused because it tries to
invoke itself using the "meson" executable (which points to the wrapper
script) instead of the actual meson (which may be called "meson.real" or
similar). In fact, the wrapper script is not necessarily even Python, so
the whole thing fails.

Fix this by using Python imports to directly find mesonmain.py instead
of trying to detect it heuristically. In addition to fixing the wrapper
issue, this should make the detection logic much more robust.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are cases when it is useful to wrap the main meson executable with
a script that sets up environment variables, passes --cross-file, etc.
For example, in a Yocto SDK, we need to point to the right meson.cross
so that everything "just works", and we need to alter CC, CXX, etc. In
such cases, it can happen that the "meson" found in the path is actually
a wrapper script that invokes the real meson, which may be in another
location (e.g. "meson.real" or similar).

Currently, in such a situation, meson gets confused because it tries to
invoke itself using the "meson" executable (which points to the wrapper
script) instead of the actual meson (which may be called "meson.real" or
similar). In fact, the wrapper script is not necessarily even Python, so
the whole thing fails.

Fix this by using Python imports to directly find mesonmain.py instead
of trying to detect it heuristically. In addition to fixing the wrapper
issue, this should make the detection logic much more robust.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix flake8 'imported but unused' reports</title>
<updated>2018-03-03T21:06:45+00:00</updated>
<author>
<name>Jon Turney</name>
<email>jon.turney@dronecode.org.uk</email>
</author>
<published>2018-03-03T15:56:33+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=cd5dba5358e8a4f7a9d4a1ebf315db1f65c87180'/>
<id>cd5dba5358e8a4f7a9d4a1ebf315db1f65c87180</id>
<content type='text'>
$ 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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
$ 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
</pre>
</div>
</content>
</entry>
<entry>
<title>Print UTF-8 warning only when actually encountering non-ascii filenames.</title>
<updated>2017-12-14T21:49:12+00:00</updated>
<author>
<name>Jussi Pakkanen</name>
<email>jpakkane@gmail.com</email>
</author>
<published>2017-12-10T16:52:09+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=88756bfe95f539c0658b4ecb4d6547d76affdce4'/>
<id>88756bfe95f539c0658b4ecb4d6547d76affdce4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix a typo in the UTF-8 warning message</title>
<updated>2017-09-20T18:02:57+00:00</updated>
<author>
<name>Luke Shumaker</name>
<email>lukeshu@lukeshu.com</email>
</author>
<published>2017-09-19T03:27:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=ef9a49d46462434c867ea1fb1991abe4201dbef2'/>
<id>ef9a49d46462434c867ea1fb1991abe4201dbef2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Write deprecation warnings to stderr.</title>
<updated>2017-08-02T19:01:13+00:00</updated>
<author>
<name>Jussi Pakkanen</name>
<email>jpakkane@gmail.com</email>
</author>
<published>2017-07-17T15:39:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=20b57d6e1560d0eb6d9dfc455de41b8352bcb39f'/>
<id>20b57d6e1560d0eb6d9dfc455de41b8352bcb39f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Print deprecation warnings on old style commands.</title>
<updated>2017-08-02T19:01:13+00:00</updated>
<author>
<name>Jussi Pakkanen</name>
<email>jpakkane@gmail.com</email>
</author>
<published>2017-07-15T13:42:38+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/meson.git/commit/?id=59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b'/>
<id>59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
