I'm working on my first Conda package. It was for code which didn't already have a setup.py script, so I wound up creating both setup.py and meta.yaml, each of which contains the same version number. I am at version 0.0.6 right now, and have already forgotten to update one or the other a couple times. I'd really like to avoid DRY. I read the documentation about inheriting environment variables and tried exporting PKG_VERSION from my build.sh script. I also tried creating __conda_version__.txt from build.sh before setup.py was run. Nothing seems to work. I either wind up with an empty version number in the BUILD START line (which I presume causes later problems), or PKG_VERSION or __conda_version__.txt are missing somewhere along the way and I get tracebacks of one sort or another.
My directory structure basically looks like this:
.../top/
setup.py
conda/
meta.yaml
build.sh
src/
... actual Python code ...
I executed "conda build conda" from the .../top directory. Have I got things structured incorrectly?
I think my recipe needs some recipe help...
Thx,
Skip Montanaro