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

Conda-build: Remove dependency on setuptools and setup.py for python packages. (redundant meta.yaml) #884

Closed
kalefranz opened this issue Apr 19, 2016 · 6 comments
Labels
locked [bot] locked due to inactivity stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity

Comments

@kalefranz
Copy link
Contributor

From @Telson on April 8, 2016 21:42

All the information is in the meta.yaml. Why not do away with setuptools and setup.py?

Build.sh can already replace setup.py by:

  • Extracting tarball into site-packages
  • Add package to conda.pth
  • Add entrypoints to bin/
  • ... etc

... so why have so much information duplicated in both meta.yaml and setup.py, requiring manual transcription?

(If it's absolutely necessary, why not have a conda-build step that generates one from the other)

Copied from original issue: conda/conda#2341

@kalefranz
Copy link
Contributor Author

From @msarahan on April 9, 2016 23:50

This is a good idea, but I don't think the answer is to totally remove setup.py. That would further divide the two packaging communities. As it is, we need to find ways to better interoperate with pip, not toss them aside. A tool for updating conda recipes from PyPI/pip would be really nice - we have conda skeleton pypi, but that is only for creating new recipes. We welcome any thoughts you have on the matter.

@kalefranz
Copy link
Contributor Author

From @marscher on April 13, 2016 10:11

I think a tool for updating this information would be a great improvement. Removing setup.py is an absolute no-go since it is a well established way of distributing packages.

@kalefranz
Copy link
Contributor Author

Related to #794

@orodbhen
Copy link

orodbhen commented May 1, 2018

Is there a tool for that takes setup.py as input and generates a conda recipe? Seems like skeleton only works on package repos.

@msarahan
Copy link
Contributor

msarahan commented May 1, 2018

not that I know of, but you can use load_setup_py_data in jinja2 and have a very minimal conda recipe. See this for an example: https://github.com/gerrymandr/adjacency-graphs/blob/master/conda.recipe/meta.yaml

@github-actions
Copy link

Hi there, thank you for your contribution!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.

If you would like this issue to remain open please:

  1. Verify that you can still reproduce the issue at hand
  2. Comment that the issue is still reproducible and include:
    - What OS and version you reproduced the issue on
    - What steps you followed to reproduce the issue

NOTE: If this issue was closed prematurely, please leave a comment.

Thanks!

@github-actions github-actions bot added the stale [bot] marked as stale due to inactivity label Jun 16, 2022
@github-actions github-actions bot added the stale::closed [bot] closed after being marked as stale label Jul 17, 2022
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Jul 17, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity
Projects
None yet
Development

No branches or pull requests

3 participants