aboutsummaryrefslogtreecommitdiff
path: root/setup.py
AgeCommit message (Collapse)AuthorFilesLines
2022-01-10bump minimum required version of python to 3.7Eli Schwartz1-2/+2
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 Schwartz1-13/+2
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 Schwartz1-9/+8
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 Schwartz1-14/+5
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 Baker1-0/+1
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 Baker1-2/+2
2020-07-16mdata: remove setuptools and use mesondata insteadDaniel Mensinger1-5/+0
2020-02-20cmake: Fix relative paths for add_custom_{command,target}Daniel Mensinger1-1/+1
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.D1-0/+1
2019-11-02Ensure setuptools via PEP508/518 pyproject.tomlMichael Hirsch, Ph.D1-1/+0
2019-07-20Add optional progress bar when generating build.ninjaNirbheek Chauhan1-0/+1
2019-07-15compilers: Move clike into a mixins directoryDylan Baker1-0/+1
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.D1-2/+2
2019-07-11ENH: metadata PEP390 setup.cfgMichael Hirsch, Ph.D1-26/+3
https for Meson docs url Co-Authored-By: Elliott Sales de Andrade <quantum.analyst@gmail.com>
2019-06-28cmake: Added custom target wrapper scriptDaniel Mensinger1-1/+4
2019-06-06cmake: Server handshakeDaniel Mensinger1-0/+1
2019-05-03LLVM: Added CMake backendDaniel Mensinger1-1/+1
2019-02-26Preliminary CMake module searchDaniel Mensinger1-1/+1
2019-01-22Fixed test case and setup.pyDaniel Mensinger1-0/+1
2018-11-22CMake find_package dependency backend (#4444)Daniel Mensinger1-0/+2
2018-10-23Throw error to unsupported Python versions before importing modules from ↵Pieter Krul1-2/+1
mesonbuild
2018-08-12setup: Add tests for the installed files listNirbheek Chauhan1-34/+40
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 Chauhan1-40/+4
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 Chauhan1-0/+8
Thanks to Rafael Rivera for the suggestion Fixes https://github.com/mesonbuild/meson/issues/1877
2018-07-19Remove long deprecated command scripts.Jussi Pakkanen1-10/+2
2018-05-17Support installation via polkitRyan Gonzalez1-1/+2
2018-03-07setup.py: set the python_requires fieldDylan Baker1-2/+4
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 Thomas1-1/+2
2017-05-12setup.py: dependencies is now a directoryNirbheek Chauhan1-0/+1
2017-04-29setup.py: install scripts from build_dirMike Gilbert1-4/+6
This ensures the installed scripts will have updated shebangs. Fixes: https://github.com/mesonbuild/meson/issues/1677
2017-01-29Bump version number for release.0.38.0Jussi Pakkanen1-1/+1
2017-01-23Added man page for mesontest.Jussi Pakkanen1-0/+1
2017-01-11style: [E402] module level import not at top of fileMike Sinkovsky1-5/+4
2016-12-19tree-wide: remove unused importsIgor Gnatenko1-3/+1
./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 othersMinijackson1-0/+1
2016-10-11setup.py: On Unix install scripts without .py suffixPatrick Griffis1-0/+27
2016-05-30Remove unmaintained and broken PyQt5 GUI (#574)Nirbheek Chauhan1-3/+0
2016-03-28Error out if trying to install with Python 2.Jussi Pakkanen1-0/+6
2016-03-02Back to .py suffix in files. Closes #394.Jussi Pakkanen1-1/+5
2016-01-23Tweak setup.py includes.Jussi Pakkanen1-0/+1
2016-01-16Fix wraptool.Jussi Pakkanen1-1/+1
2016-01-16Fix some issues that break pypi installs and bump version to upload new version.Jussi Pakkanen1-2/+5
2016-01-16Some text tweaks.Jussi Pakkanen1-1/+1
2016-01-16Removed custom tar generator.Jussi Pakkanen1-0/+3
2016-01-16Support both setuptools and distutils.Jussi Pakkanen1-1/+5
2016-01-16Added distutils setup.py.Jussi Pakkanen1-0/+50