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

Make more use of setup.cfg #394

Closed
ghost opened this issue Jun 3, 2015 · 5 comments
Closed

Make more use of setup.cfg #394

ghost opened this issue Jun 3, 2015 · 5 comments

Comments

@ghost
Copy link

ghost commented Jun 3, 2015

Originally reported by: Anonymous


Right now setuptools uses setup.cfg only for configuration options of commands, e.g.

#!python

python setup.py build_ext --inplace 

is equal to

#!python

[build_ext]
inplace=1

in setup.cfg. Why not allow users to define most of the configuration options to the setup command inside setup.cfg? It seems there was some effort done in disutils2 to allow that. As the maintainer of PyScaffold, I implemented my own logic but have a strong feeling that setuptools should directly implement this. Having a purely declarative way of defining the settings for 95% of all use cases would help beginners and intermediate Python developers a lot.


@ghost
Copy link
Author

ghost commented Jun 3, 2015

Original comment by florianwilhelm (Bitbucket: florianwilhelm, GitHub: florianwilhelm):


err... sorry for posting this anonymously.. I forgot to log in.

@ghost
Copy link
Author

ghost commented Jun 9, 2015

Original comment by embray (Bitbucket: embray, GitHub: embray):


Have you had a look at d2to1, or its progeny pbr?

@ghost
Copy link
Author

ghost commented Jun 9, 2015

Original comment by florianwilhelm (Bitbucket: florianwilhelm, GitHub: florianwilhelm):


@embray Thanks a lot, while d2t1 looks quite abandoned, pbr seems to do the job judging from the description. I'll check it out. But still, shouldn't this functionality be directly included into setuptools?

@ghost
Copy link
Author

ghost commented Jun 9, 2015

Original comment by embray (Bitbucket: embray, GitHub: embray):


Not abandoned, just no time to make updates :( pbr is better supported at the moment I think.

@jaraco
Copy link
Member

jaraco commented Apr 8, 2017

This was released in 30.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant