Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature names with '-' is bugged #1549

Closed
dfroger opened this issue Nov 22, 2016 · 3 comments · Fixed by #1600
Closed

feature names with '-' is bugged #1549

dfroger opened this issue Nov 22, 2016 · 3 comments · Fixed by #1600
Labels
locked [bot] locked due to inactivity

Comments

@dfroger
Copy link
Contributor

dfroger commented Nov 22, 2016

If a feature is named for example python-debug, building the recipes fails with:

  File "/home/vagrant/miniconda3/bin/conda-build", line 6, in <module>
    sys.exit(conda_build.cli.main_build.main())
  File "/home/vagrant/miniconda3/lib/python3.5/site-packages/conda_build/cli/main_build.py", line 247, in main
    execute(sys.argv[1:])
  File "/home/vagrant/miniconda3/lib/python3.5/site-packages/conda_build/cli/main_build.py", line 239, in execute
    already_built=None, config=config, noverify=args.no_verify)
  File "/home/vagrant/miniconda3/lib/python3.5/site-packages/conda_build/api.py", line 77, in build
    need_source_download=need_source_download, config=config)
  File "/home/vagrant/miniconda3/lib/python3.5/site-packages/conda_build/build.py", line 1088, in build_tree
    config=recipe_config)
  File "/home/vagrant/miniconda3/lib/python3.5/site-packages/conda_build/build.py", line 817, in build
    tarcheck.check_all(tmp_path)
  File "/home/vagrant/miniconda3/lib/python3.5/site-packages/conda_build/tarcheck.py", line 91, in check_all
    x.index_json()
  File "/home/vagrant/miniconda3/lib/python3.5/site-packages/conda_build/tarcheck.py", line 62, in index_json
    getattr(self, varname)))
Exception: name: 'python' != 'python-3.5.2'

In tarcheck.py, if dist = python-3.5.2-python-debug_3, we get name, version, build = 'python-3.5.2', 'python', 'debug_3', which is wrong.

If dist = python-3.5.2-python_debug_3, we get name, version, build = 'python', '3.5.2', 'python_debug_3, which is correct.

@msarahan
Copy link
Contributor

unfortunately, there is a ton of legacy logic that assumes a particular number of - characters, split from the right backwards. Changing conda-build to allow dashes in features is asking for a lot of trouble.

Instead, I'd propose to raise error messages when features with - are defined. Is that an acceptable solution to you?

@dfroger
Copy link
Contributor Author

dfroger commented Dec 11, 2016

Hi, absolutely, I think raising a error message would be perfect! Thanks @msarahan

@github-actions
Copy link

Hi there, thank you for your contribution!

This issue has been automatically locked because it has not had recent activity after being closed.

Please open a new issue if needed.

Thanks!

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Apr 18, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants