Skip to content

Commit caf5111

Browse files
committed
Add compilers to conda environment
This fixes issues with `libstdc++.so` when using a system with a newer compiler. In such cases, the compiler will create links to new symbols, but the shared library available at runtime from conda-forge will not have them available. This results in errors such as: ``` ImportError: /home/elliott/micromamba/envs/mpl-dev/bin/../lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by /home/elliott/code/matplotlib/build/cp39/src/_c_internal_utils.cpython-39-x86_64-linux-gnu.so) ```
1 parent bcaffa1 commit caf5111

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ install:
6868
test_script:
6969
# Now build the thing..
7070
- set LINK=/LIBPATH:%cd%\lib
71-
- pip install -v --no-build-isolation --config-settings=setup-args="--vsenv" --editable .[dev]
71+
- pip install -v --no-build-isolation --editable .[dev]
7272
# this should show no freetype dll...
7373
- set "DUMPBIN=%VS140COMNTOOLS%\..\..\VC\bin\dumpbin.exe"
7474
- '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'

environment.yml

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ channels:
1111
dependencies:
1212
# runtime dependencies
1313
- cairocffi
14+
- c-compiler
15+
- cxx-compiler
1416
- contourpy>=1.0.1
1517
- cycler>=0.10.0
1618
- fonttools>=4.22.0
@@ -24,6 +26,7 @@ dependencies:
2426
- pygobject
2527
- pyparsing>=2.3.1
2628
- pyqt
29+
- python
2730
- python-dateutil>=2.1
2831
- setuptools_scm
2932
- wxpython

0 commit comments

Comments
 (0)