WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit b29840c

Browse files
committed
Merge remote-tracking branch 'upstream/main' into gha/upload_packages_workflow
2 parents fce542e + 1690175 commit b29840c

File tree

6 files changed

+33
-7
lines changed

6 files changed

+33
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: check-yaml
1010
exclude: ^.*meta\.yaml$
1111
- repo: https://github.com/pre-commit/mirrors-clang-format
12-
rev: v21.1.2
12+
rev: v21.1.5
1313
hooks:
1414
- id: clang-format
1515
types_or: [c++, c, c#, cuda, metal]

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014-, Continuum Analytics, Inc.
1+
Copyright (c) 2014, Anaconda Inc.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include *.rst setup.py runtests.py run_coverage.py LICENSE
1+
include *.rst setup.py runtests.py run_coverage.py LICENSE LICENSE.thirdparty
22
include versioneer.py
33
include llvmlite/_version.py
44
recursive-include examples *.py *.ll

docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454

5555
# General information about the project.
5656
project = 'llvmlite'
57-
copyright = '2015, Continuum Analytics'
58-
author = 'Continuum Analytics'
57+
copyright = '2014, Anaconda Inc.'
58+
author = 'Numba Developers'
5959

6060
if os.environ.get('READTHEDOCS'):
6161
# RTD replaces the last update date. So we need to hack it in here.
@@ -237,7 +237,7 @@
237237
# author, documentclass [howto, manual, or own class]).
238238
latex_documents = [
239239
(master_doc, 'llvmlite.tex', 'llvmlite Documentation',
240-
'Continuum Analytics', 'manual'),
240+
'Anaconda Inc.', 'manual'),
241241
]
242242

243243
# The name of an image file (relative to this directory) to place at the top of

ffi/build.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from __future__ import print_function
77

8+
import functools
89
import os
910
import subprocess
1011
import shutil
@@ -79,7 +80,31 @@ def env_var_options_to_cmake_options():
7980
return cmake_options
8081

8182

83+
@functools.cache
84+
def check_cmake():
85+
try:
86+
subprocess.run(("cmake", ), check=True, stdout=subprocess.PIPE,
87+
stderr=subprocess.PIPE, timeout=60)
88+
except subprocess.CalledProcessError as e:
89+
msg = ("llvmlite needs working CMake tools to build. There was an "
90+
"issue when performing a test run of the 'cmake' binary.\n"
91+
f"STDOUT: {e.stdout.decode('UTF-8')}\n"
92+
f"STDERR: {e.stderr.decode('UTF-8')}\n"
93+
"See the traceback for details.")
94+
raise RuntimeError(msg) from e
95+
except FileNotFoundError as e:
96+
msg = ("llvmlite needs CMake tools to build. It appears that the "
97+
"'cmake' tool is either not installed or not found on the path. "
98+
"Please add CMake tools to the build environment and path, they "
99+
"are available from many package managers.")
100+
raise FileNotFoundError(msg) from e
101+
# Timeout etc not handled, there's little advice that can be given and the
102+
# traceback is self explanatory.
103+
104+
82105
def try_cmake(cmake_dir, build_dir, generator, arch=None, toolkit=None):
106+
# first check that CMake tools are present and run ok.
107+
check_cmake()
83108
old_dir = os.getcwd()
84109
args = ['cmake', '-G', generator]
85110
if arch is not None:

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ def finalize_options(self):
207207
"Source": "https://github.com/numba/llvmlite",
208208
},
209209
packages=packages,
210-
license="BSD",
210+
license_expression="BSD-2-Clause AND Apache-2.0 WITH LLVM-exception",
211+
license_files=['LICENSE', 'LICENSE.thirdparty'],
211212
cmdclass=cmdclass,
212213
long_description=long_description,
213214
python_requires=">={}".format(_version_info_str(min_python_version)),

0 commit comments

Comments
 (0)