praxes / hexrd

Legacy hexrd repository (python2.7)
http://hexrd.readthedocs.org
14 stars 42 forks source link

Versioner bug? #82

Closed joelvbernier closed 9 years ago

joelvbernier commented 9 years ago

So I was trying to install clean and I get the following error from conda build:

apsvisit37c:hexrd davidmenasche$ conda build conda.recipe/ An unexpected error has occurred, please consider sending the following traceback to the conda GitHub issue tracker at:

https://github.com/conda/conda-build/issues

Include the output of the command 'conda info' in your report.

Traceback (most recent call last): File "//anaconda/bin/conda-build", line 5, in sys.exit(main()) File "//anaconda/lib/python2.7/site-packages/conda_build/main_build.py", line 110, in main args_func(args, p) File "//anaconda/lib/python2.7/site-packages/conda_build/main_build.py", line 312, in args_func args.func(args, p) File "//anaconda/lib/python2.7/site-packages/conda_build/main_build.py", line 244, in execute m = MetaData(recipe_dir) File "//anaconda/lib/python2.7/site-packages/conda_build/metadata.py", line 250, in init self.parse_again() File "//anaconda/lib/python2.7/site-packages/conda_build/metadata.py", line 258, in parse_again self.meta = parse(get_contents(self.meta_path)) File "//anaconda/lib/python2.7/site-packages/conda_build/metadata.py", line 234, in get_contents contents = template.render(environment=env) File "//anaconda/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render return self.environment.handle_exception(exc_info, True) File "//anaconda/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception reraise(exc_type, exc_value, tb) File "/Users/davidmenasche/hexrd/conda.recipe/meta.yaml", line 4, in top-level template code version: {{ environ['GIT_DESCRIBE_TAG'][1:]+environ.get('GIT_DESCRIBE_NUMBER', '') }} jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'GIT_DESCRIBE_TAG' apsvisit37c:hexrd davidmenasche$ git describe v0.0.1-532-g129c562

Not sure where the GIT_DESCRIBE_TAG comes from? I noticed the version tag is off... setuptools gives the right one though.

ddale commented 9 years ago

do a conda install jinja2 before running conda build

ddale commented 9 years ago

Found a potential fix: conda/conda-build#268

ddale commented 9 years ago

Found a workaround that doesn't depend on fixing conda-build.