summaryrefslogtreecommitdiff
path: root/setup.py
AgeCommit message (Collapse)Author
2025-04-16setup.py: crudely label wheels using setuptools_scm if building from gitEli Schwartz
2023-12-13Use SPDX-License-Identifier consistentlyDylan Baker
This replaces all of the Apache blurbs at the start of each file with an `# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing uses to be consistent in capitalization, and to be placed above any copyright notices. This removes nearly 3000 lines of boilerplate from the project (only python files), which no developer cares to look at. SPDX is in common use, particularly in the Linux kernel, and is the recommended format for Meson's own `project(license: )` field
2022-01-10bump minimum required version of python to 3.7Eli Schwartz
Comment out the pending deprecation notice. It cannot be reached anymore, but is still useful for the next time we do a version bump.
2021-03-10setuptools: move stuff to declarative cfg if possible [skip ci]Eli Schwartz
We're down to just declaring the data files in python now. setup.cfg can, uniquely, retrieve version info by trying to parse the AST for simple assignments (which we use) instead of importing the entire module.
2021-03-09setup.py: remove pointless __main__ guardEli Schwartz
Since the testsuite no longer tries to import a *script* as a *module*, there is no need to check if we are in __main__ before running setup().
2021-03-09setuptools: don't hardcode list of modules to install, use find_packagesEli Schwartz
And don't run a pointless test to verify that the hardcoded list has been manually maintained correctly. The same test rules used there can translate directly to find_packages pattern rules.
2021-01-23split mesonlib into a packageDylan Baker
Currently mesonlib does some import tricks to figure out whether it needs to use windows or posix specific functions. This is a little hacky, but works fine. However, the way the typing stubs are implemented for the msvcrt and fnctl modules will cause mypy to fail on the other platform, since the functions are not implemented. To aleviate this (and for slightly cleaner design), I've split mesonlib into a pacakge with three modules. A universal module contains all of the platform agnositc code, a win32 module contains window specific code, a posix module contains the posix specific code, and a platform module contains no-op implementations. Then the package's __init__ file imports all of the universal functions and all of the functions from the approriate platform module, or the no-op versions as fallbacks. This makes mypy happy, and avoids `if`ing all over the code to switch between the platform specific code.
2020-11-20setup.py: fix check fro 3.5.2 which should be 3.6Dylan Baker
2020-07-16mdata: remove setuptools and use mesondata insteadDaniel Mensinger
2020-02-20cmake: Fix relative paths for add_custom_{command,target}Daniel Mensinger
Do this by tracking CMAKE_CURRENT_{SOURCE,BINARY}_DIR variables. This is achieved by injecting CMake code with CMAKE_PROJECT_INCLUDE and overriding some builtin functions with a wrapper that adds additional trace information.
2019-11-02Minit templates modularizationMichael Hirsch, Ph.D
2019-11-02Ensure setuptools via PEP508/518 pyproject.tomlMichael Hirsch, Ph.D
2019-07-20Add optional progress bar when generating build.ninjaNirbheek Chauhan
2019-07-15compilers: Move clike into a mixins directoryDylan Baker
The compilers module is rather large and confusing, with spaghetti dependencies going every which way. I'm planning to start breaking out the internal representations into a mixins submodule, for things that shouldn't be required outside of the compilers module itself.
2019-07-11setup.py >= python 3.5.2Michael Hirsch, Ph.D
2019-07-11ENH: metadata PEP390 setup.cfgMichael Hirsch, Ph.D
https for Meson docs url Co-Authored-By: Elliott Sales de Andrade <quantum.analyst@gmail.com>
2019-06-28cmake: Added custom target wrapper scriptDaniel Mensinger
2019-06-06cmake: Server handshakeDaniel Mensinger
2019-05-03LLVM: Added CMake backendDaniel Mensinger
2019-02-26Preliminary CMake module searchDaniel Mensinger
2019-01-22Fixed test case and setup.pyDaniel Mensinger
2018-11-22CMake find_package dependency backend (#4444)Daniel Mensinger
2018-10-23Throw error to unsupported Python versions before importing modules from ↵Pieter Krul
mesonbuild
2018-08-12setup: Add tests for the installed files listNirbheek Chauhan
Ensure that the installed files list matches what we expect, to avoid surprises at release time.
2018-08-11setup: Require setuptools and entry_points:Nirbheek Chauhan
This gives us a consistent experience and a simpler setup across all operating systems. Setuptools is available everywhere these days.
2018-08-11Install meson.exe as the entrypoint on WindowsNirbheek Chauhan
Thanks to Rafael Rivera for the suggestion Fixes https://github.com/mesonbuild/meson/issues/1877
2018-07-19Remove long deprecated command scripts.Jussi Pakkanen
2018-05-17Support installation via polkitRyan Gonzalez
2018-03-07setup.py: set the python_requires fieldDylan Baker
This instructs tools like pip that meson requires python 3.5 or greater, so if one tries to install on an older version pip will fall back to an older version of meson. This won't fix 0.45 since it's already in the wild (unless someone wants to delete and re-upload the version on pypi). But it should fix future versions. Retain the hand rolled version check, but update it to enforce our actual requirements.
2017-06-27Add mesonbuild.compilers to packages in setup.pyAlistair Thomas
2017-05-12setup.py: dependencies is now a directoryNirbheek Chauhan
2017-04-29setup.py: install scripts from build_dirMike Gilbert
This ensures the installed scripts will have updated shebangs. Fixes: https://github.com/mesonbuild/meson/issues/1677
2017-01-29Bump version number for release.Jussi Pakkanen
2017-01-23Added man page for mesontest.Jussi Pakkanen
2017-01-11style: [E402] module level import not at top of fileMike Sinkovsky
2016-12-19tree-wide: remove unused importsIgor Gnatenko
./setup.py:17:1: F401 'os' imported but unused import os ^ ./setup.py:37:1: F401 'stat.ST_MODE' imported but unused from stat import ST_MODE ^ ./run_tests.py:17:1: F401 'os' imported but unused import subprocess, sys, os ^ ./run_tests.py:18:1: F401 'shutil' imported but unused import shutil ^ ./run_unittests.py:23:1: F401 'mesonbuild.dependencies.Qt5Dependency' imported but unused from mesonbuild.dependencies import PkgConfigDependency, Qt5Dependency ^ ./mesonbuild/build.py:15:1: F401 '.coredata' imported but unused from . import coredata ^ ./mesonbuild/interpreter.py:32:1: F401 'subprocess' imported but unused import os, sys, subprocess, shutil, uuid, re ^ ./mesonbuild/interpreter.py:32:1: F401 're' imported but unused import os, sys, subprocess, shutil, uuid, re ^ ./mesonbuild/dependencies.py:23:1: F401 'subprocess' imported but unused import os, stat, glob, subprocess, shutil ^ ./mesonbuild/mesonlib.py:17:1: F401 'sys' imported but unused import platform, subprocess, operator, os, shutil, re, sys ^ ./mesonbuild/modules/qt5.py:15:1: F401 'subprocess' imported but unused import os, subprocess ^ ./mesonbuild/modules/pkgconfig.py:15:1: F401 '..coredata' imported but unused from .. import coredata, build ^ ./mesonbuild/scripts/scanbuild.py:15:1: F401 'sys' imported but unused import sys, os ^ ./mesonbuild/scripts/meson_exe.py:20:1: F401 'subprocess' imported but unused import subprocess ^ ./mesonbuild/scripts/meson_exe.py:22:1: F401 '..mesonlib.MesonException' imported but unused from ..mesonlib import MesonException, Popen_safe ^ ./mesonbuild/scripts/symbolextractor.py:23:1: F401 'subprocess' imported but unused import os, sys, subprocess ^ ./mesonbuild/scripts/symbolextractor.py:25:1: F401 '..mesonlib.MesonException' imported but unused from ..mesonlib import MesonException, Popen_safe ^ ./mesonbuild/scripts/meson_install.py:19:1: F401 '..mesonlib.MesonException' imported but unused from ..mesonlib import MesonException, Popen_safe ^ ./mesonbuild/scripts/yelphelper.py:15:1: F401 'sys' imported but unused import sys, os ^ ./mesonbuild/scripts/yelphelper.py:20:1: F401 '..mesonlib.MesonException' imported but unused from ..mesonlib import MesonException ^ ./mesonbuild/backend/vs2010backend.py:17:1: F401 're' imported but unused import re ^ ./test cases/vala/8 generated sources/src/copy_file.py:3:1: F401 'os' imported but unused import os ^ ./test cases/common/107 postconf/postconf.py:3:1: F401 'sys' imported but unused import sys, os ^ ./test cases/common/129 object only target/obj_generator.py:5:1: F401 'shutil' imported but unused import sys, shutil, subprocess ^ ./test cases/common/57 custom target chain/usetarget/subcomp.py:3:1: F401 'os' imported but unused import sys, os ^ ./test cases/common/95 dep fallback/subprojects/boblib/genbob.py:3:1: F401 'os' imported but unused import os ^ ./test cases/common/98 gen extra/srcgen.py:4:1: F401 'os' imported but unused import os ^ ./test cases/common/113 generatorcustom/gen.py:3:1: F401 'os' imported but unused import sys, os ^ ./test cases/common/113 generatorcustom/catter.py:3:1: F401 'os' imported but unused import sys, os ^ ./test cases/common/59 object generator/obj_generator.py:5:1: F401 'shutil' imported but unused import sys, shutil, subprocess ^ Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-11-26Install mesontest script along with the othersMinijackson
2016-10-11setup.py: On Unix install scripts without .py suffixPatrick Griffis
2016-05-30Remove unmaintained and broken PyQt5 GUI (#574)Nirbheek Chauhan
2016-03-28Error out if trying to install with Python 2.Jussi Pakkanen
2016-03-02Back to .py suffix in files. Closes #394.Jussi Pakkanen
2016-01-23Tweak setup.py includes.Jussi Pakkanen
2016-01-16Fix wraptool.Jussi Pakkanen
2016-01-16Fix some issues that break pypi installs and bump version to upload new version.Jussi Pakkanen
2016-01-16Some text tweaks.Jussi Pakkanen
2016-01-16Removed custom tar generator.Jussi Pakkanen
2016-01-16Support both setuptools and distutils.Jussi Pakkanen
2016-01-16Added distutils setup.py.Jussi Pakkanen