mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
Add more helpful error when importing without libomp installed
Also use non-shallow clones in ci
This commit is contained in:
parent
3fdfc3ecaa
commit
a881a0a36b
14
.github/workflows/python-package.yml
vendored
14
.github/workflows/python-package.yml
vendored
@ -13,9 +13,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
# Whether to checkout submodules: `true` to checkout submodules or `recursive` to
|
fetch-depth: 0
|
||||||
# recursively checkout submodules.
|
|
||||||
submodules: 'true'
|
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v3.1.1
|
uses: actions/setup-python@v3.1.1
|
||||||
@ -58,9 +56,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
# Whether to checkout submodules: `true` to checkout submodules or `recursive` to
|
fetch-depth: 0
|
||||||
# recursively checkout submodules.
|
|
||||||
submodules: 'true'
|
|
||||||
|
|
||||||
- name: Install libomp
|
- name: Install libomp
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
@ -97,11 +93,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3 # just need the changelog
|
||||||
with:
|
|
||||||
# Whether to checkout submodules: `true` to checkout submodules or `recursive` to
|
|
||||||
# recursively checkout submodules.
|
|
||||||
submodules: 'true'
|
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v3.1.1
|
uses: actions/setup-python@v3.1.1
|
||||||
|
12
CHANGELOG.md
12
CHANGELOG.md
@ -2,6 +2,18 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file
|
All notable changes to this project will be documented in this file
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed quicktex not compiling for python 3.10 on Windows
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Reworked CI job, adding wheels for ARM macOS, ARM Linux, and x86 musl Linux.
|
||||||
|
- Added a more useful error message when importing quicktex on macOS when libomp.dylib isnt installed
|
||||||
|
|
||||||
|
|
||||||
## 0.1.2 - 2022-03-27
|
## 0.1.2 - 2022-03-27
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -1,2 +1,8 @@
|
|||||||
from _quicktex import *
|
try:
|
||||||
from _quicktex import __version__
|
from _quicktex import *
|
||||||
|
from _quicktex import __version__
|
||||||
|
except ImportError as e:
|
||||||
|
if 'libomp.dylib' in e.msg:
|
||||||
|
print('\033[41m\033[01mERROR: LIBOMP NOT FOUND! PLEASE INSTALL IT WITH \033[04m`brew install libomp`\033[0m')
|
||||||
|
print('original error message:')
|
||||||
|
raise e
|
||||||
|
Loading…
Reference in New Issue
Block a user