Eli Schwartz
ad525dcce4
bump minimum required version of python to 3.7
...
Comment out the pending deprecation notice. It cannot be reached
anymore, but is still useful for the next time we do a version bump.
3 years ago
Eli Schwartz
d4bdd8318b
setuptools: move stuff to declarative cfg if possible [skip ci]
...
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.
4 years ago
Eli Schwartz
6f9d6858ce
setup.py: remove pointless __main__ guard
...
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().
4 years ago
Eli Schwartz
e494be9b02
setuptools: don't hardcode list of modules to install, use find_packages
...
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.
4 years ago
Dylan Baker
23d3b98fc1
split mesonlib into a package
...
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.
4 years ago
Dylan Baker
8d84d4b693
setup.py: fix check fro 3.5.2 which should be 3.6
4 years ago
Daniel Mensinger
05ddd6543d
mdata: remove setuptools and use mesondata instead
4 years ago
Dylan Baker
29ef4478df
compilers/d: Add b_ndebug support
...
D lang compilers have an option -release (or similar) which turns off
asserts, contracts, and other runtime type checking. This patch wires
that up to the b_ndebug flag.
Fixes #7082
5 years ago
Daniel Mensinger
113ec96626
cmake: Fix relative paths for add_custom_{command,target}
...
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.
5 years ago
Michael Hirsch, Ph.D
bbe6db08e3
Minit templates modularization
5 years ago
Michael Hirsch, Ph.D
d218d52367
Ensure setuptools via PEP508/518 pyproject.toml
5 years ago
Nirbheek Chauhan
9c2724bce5
Add optional progress bar when generating build.ninja
5 years ago
Dylan Baker
d483da46a9
compilers: Move clike into a mixins directory
...
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.
5 years ago
Michael Hirsch, Ph.D
23ef8045a9
setup.py >= python 3.5.2
5 years ago
Michael Hirsch, Ph.D
4b9625ac06
ENH: metadata PEP390 setup.cfg
...
https for Meson docs url
Co-Authored-By: Elliott Sales de Andrade <quantum.analyst@gmail.com>
5 years ago
Daniel Mensinger
98813c1d22
cmake: Added custom target wrapper script
6 years ago
Daniel Mensinger
8d3bd6eea8
cmake: Server handshake
6 years ago
Daniel Mensinger
a9930fe066
LLVM: Added CMake backend
6 years ago
Daniel Mensinger
cdc338b743
Preliminary CMake module search
6 years ago
Daniel Mensinger
4b3e21b894
Fixed test case and setup.py
6 years ago
Daniel Mensinger
a0175ecb14
CMake find_package dependency backend ( #4444 )
6 years ago
Pieter Krul
87355c8132
Throw error to unsupported Python versions before importing modules from mesonbuild
6 years ago
Nirbheek Chauhan
c0413f5d49
setup: Add tests for the installed files list
...
Ensure that the installed files list matches what we expect, to avoid
surprises at release time.
6 years ago
Nirbheek Chauhan
86298f2109
setup: Require setuptools and entry_points:
...
This gives us a consistent experience and a simpler setup across all
operating systems. Setuptools is available everywhere these days.
6 years ago
Nirbheek Chauhan
2ee28029f9
Install meson.exe as the entrypoint on Windows
...
Thanks to Rafael Rivera for the suggestion
Fixes https://github.com/mesonbuild/meson/issues/1877
6 years ago
Jussi Pakkanen
b4c635a2e8
Remove long deprecated command scripts.
6 years ago
Ryan Gonzalez
559286a0da
Support installation via polkit
7 years ago
Dylan Baker
1ea96b710b
setup.py: set the python_requires field
...
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.
7 years ago
Alistair Thomas
7ab774dee5
Add mesonbuild.compilers to packages in setup.py
8 years ago
Nirbheek Chauhan
67b195f919
setup.py: dependencies is now a directory
8 years ago
Mike Gilbert
69e20735d5
setup.py: install scripts from build_dir
...
This ensures the installed scripts will have updated shebangs.
Fixes: https://github.com/mesonbuild/meson/issues/1677
8 years ago
Jussi Pakkanen
acdf5c2e71
Bump version number for release.
8 years ago
Jussi Pakkanen
5e4f04e8f1
Added man page for mesontest.
8 years ago
Mike Sinkovsky
3adf5aed81
style: [E402] module level import not at top of file
8 years ago
Igor Gnatenko
8268eb4959
tree-wide: remove unused imports
...
./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>
8 years ago
Minijackson
8652b94c4f
Install mesontest script along with the others
8 years ago
Patrick Griffis
999669e850
setup.py: On Unix install scripts without .py suffix
8 years ago
Nirbheek Chauhan
71f18226d1
Remove unmaintained and broken PyQt5 GUI ( #574 )
9 years ago
Jussi Pakkanen
46c324eb6e
Error out if trying to install with Python 2.
9 years ago
Jussi Pakkanen
455e55f8e5
Back to .py suffix in files. Closes #394 .
9 years ago
Jussi Pakkanen
4319f002a1
Tweak setup.py includes.
9 years ago
Jussi Pakkanen
7492724655
Fix wraptool.
9 years ago
Jussi Pakkanen
84456537da
Fix some issues that break pypi installs and bump version to upload new version.
9 years ago
Jussi Pakkanen
2f868a19c6
Some text tweaks.
9 years ago
Jussi Pakkanen
5a77aff4ad
Removed custom tar generator.
9 years ago
Jussi Pakkanen
2e42427d4a
Support both setuptools and distutils.
9 years ago
Jussi Pakkanen
53688207ab
Added distutils setup.py.
9 years ago