diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-17 14:36:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-17 14:36:33 +0000 |
commit | 665666d6f4213da8db57ebb480947b7caf1fe382 (patch) | |
tree | 0cac5d322dfe861a6de62b04fb916cef6dbe4510 /build.py | |
parent | Releasing debian version 3.0.0~a1-2. (diff) | |
download | pendulum-665666d6f4213da8db57ebb480947b7caf1fe382.tar.xz pendulum-665666d6f4213da8db57ebb480947b7caf1fe382.zip |
Merging upstream version 3.0.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build.py')
-rw-r--r-- | build.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/build.py b/build.py deleted file mode 100644 index 95e63e1..0000000 --- a/build.py +++ /dev/null @@ -1,33 +0,0 @@ -import subprocess - -from pathlib import Path - - -def meson(*args): - subprocess.call(["meson"] + list(args)) - - -def _build(): - build_dir = Path(__file__).parent.joinpath("build") - build_dir.mkdir(parents=True, exist_ok=True) - - meson("setup", build_dir.as_posix()) - meson("compile", "-C", build_dir.as_posix()) - meson("install", "-C", build_dir.as_posix()) - - -def build(setup_kwargs): - """ - This function is mandatory in order to build the extensions. - """ - try: - _build() - except Exception: - print( - " Unable to build C extensions, " - "Pendulum will use the pure python version of the extensions." - ) - - -if __name__ == "__main__": - build({}) |