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

Document how to provide defaults for setup.py commands options #60933

Closed
techtonik mannequin opened this issue Dec 19, 2012 · 3 comments
Closed

Document how to provide defaults for setup.py commands options #60933

techtonik mannequin opened this issue Dec 19, 2012 · 3 comments
Assignees
Labels
docs Documentation in the Doc dir stdlib Python modules in the Lib dir

Comments

@techtonik
Copy link
Mannequin

techtonik mannequin commented Dec 19, 2012

BPO 16729
Nosy @tarekziade, @merwok, @dstufft

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/merwok'
closed_at = <Date 2020-10-22.20:19:12.352>
created_at = <Date 2012-12-19.13:44:01.355>
labels = ['library', 'docs']
title = 'Document how to provide defaults for setup.py commands options'
updated_at = <Date 2020-10-22.20:19:12.352>
user = 'https://bugs.python.org/techtonik'

bugs.python.org fields:

activity = <Date 2020-10-22.20:19:12.352>
actor = 'eric.araujo'
assignee = 'eric.araujo'
closed = True
closed_date = <Date 2020-10-22.20:19:12.352>
closer = 'eric.araujo'
components = ['Distutils', 'Documentation']
creation = <Date 2012-12-19.13:44:01.355>
creator = 'techtonik'
dependencies = []
files = []
hgrepos = []
issue_num = 16729
keywords = []
message_count = 3.0
messages = ['177742', '223121', '223169']
nosy_count = 5.0
nosy_names = ['techtonik', 'tarek', 'eric.araujo', 'alexis', 'dstufft']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue16729'
versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']

@techtonik
Copy link
Mannequin Author

techtonik mannequin commented Dec 19, 2012

The way to override defaults for setup.py commands is not documented. For example, to change to name of build and dist dirs from setup.py, the following entry should be added to setup parameters:

    options={
        'build': {'build_base': '__build__'},
        'sdist': {'dist_dir': '__build__/dist'},
    }

An example would be extremely helpful at
http://docs.python.org/2/install/index.html#how-building-works

tag:easy
http://thread.gmane.org/gmane.comp.python.distutils.devel/16434
bpo-16299

@techtonik techtonik mannequin assigned merwok Dec 19, 2012
@techtonik techtonik mannequin added stdlib Python modules in the Lib dir docs Documentation in the Doc dir labels Dec 19, 2012
@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Jul 15, 2014

@eric could you comment on this please.

@merwok
Copy link
Member

merwok commented Jul 16, 2014

In my opinion it's easier and more common to put default options in a setup.cfg file, rather than in the Python code.

@merwok merwok closed this as completed Oct 22, 2020
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

1 participant