Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34d64e5

Browse files
committed
conda-recipe: Readd condaversion.patch
Again, don't use `load_setuptools()` but the __conda_version__.txt file to get the final version of the package from the git commit id.
1 parent 833f903 commit 34d64e5

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

ci/conda_recipe/condaversion.patch

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git setup.py setup.py
2+
index 8af8b6d..4e4f9d2 100644
3+
--- setup.py
4+
+++ setup.py
5+
@@ -57,6 +57,9 @@
6+
import versioneer
7+
__version__ = versioneer.get_version()
8+
9+
+# For conda builds...
10+
+with open("__conda_version__.txt", "w") as f:
11+
+ f.write(__version__)
12+
13+
# These are the packages in the order we want to display them. This
14+
# list may contain strings to create section headers for the display.
15+

ci/conda_recipe/meta.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# Full credit goes to https://github.com/conda/conda-recipes for providing this recipe.
22
# It has been subsequently adapted for automated building with conda-forge and matplotlib.
33

4-
{% set data = load_setuptools() %}
5-
64
package:
75
name: matplotlib
8-
version: {{data.get('version')}}
6+
version: 1.9.9
97

108
source:
119
path: ../../
@@ -15,6 +13,11 @@ source:
1513
- cfg_qt4agg.patch # [linux]
1614
# Patches the matplotlibrc template to default to Qt4.
1715
- rctmp_pyside.patch # [not osx]
16+
# dynamic version from git
17+
# we can't use condas usual dynamic versions as setup.py uses
18+
# multiprocessing during the configure stage and this seems to confuse conda-build.
19+
# https://github.com/conda/conda-build/issues/1061
20+
- condaversion.patch
1821

1922

2023
requirements:

0 commit comments

Comments
 (0)