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

Distutils' mkpath implementation ignoring the "mode" parameter #46489

Closed
henrique mannequin opened this issue Mar 4, 2008 · 14 comments
Closed

Distutils' mkpath implementation ignoring the "mode" parameter #46489

henrique mannequin opened this issue Mar 4, 2008 · 14 comments
Assignees
Labels
easy stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@henrique
Copy link
Mannequin

henrique mannequin commented Mar 4, 2008

BPO 2236
Nosy @orsenthil, @pitrou, @tarekziade, @merwok, @akitada, @bitdancer
Files
  • python2.5-distutils_mkpath_filemode.v1.diff: Patch
  • python-distutils_mkpath_filemode-v2.diff
  • python-distutils_mkpath_filemode-test-update.diff
  • 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/orsenthil'
    closed_at = <Date 2010-09-19.04:21:41.093>
    created_at = <Date 2008-03-04.20:56:47.897>
    labels = ['easy', 'type-bug', 'library']
    title = 'Distutils\' mkpath implementation ignoring the "mode" parameter'
    updated_at = <Date 2010-09-19.04:21:41.091>
    user = 'https://bugs.python.org/henrique'

    bugs.python.org fields:

    activity = <Date 2010-09-19.04:21:41.091>
    actor = 'orsenthil'
    assignee = 'orsenthil'
    closed = True
    closed_date = <Date 2010-09-19.04:21:41.093>
    closer = 'orsenthil'
    components = ['Distutils']
    creation = <Date 2008-03-04.20:56:47.897>
    creator = 'henrique'
    dependencies = []
    files = ['9605', '18887', '18927']
    hgrepos = []
    issue_num = 2236
    keywords = ['patch', 'easy']
    message_count = 14.0
    messages = ['63259', '64177', '81180', '107641', '108887', '115052', '116430', '116433', '116678', '116702', '116750', '116840', '116848', '116849']
    nosy_count = 10.0
    nosy_names = ['gward', 'jafo', 'orsenthil', 'pitrou', 'tarek', 'henrique', 'eric.araujo', 'akitada', 'r.david.murray', 'chromano']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue2236'
    versions = ['Python 3.1', 'Python 2.7', 'Python 3.2']

    @henrique
    Copy link
    Mannequin Author

    henrique mannequin commented Mar 4, 2008

    The default value for mkpath's mode parameter is 0777 but it isn't used
    at any place; attached is a patch that just pass the parameter to
    os.mkdir call, this seems to fix the problem.

    @henrique henrique mannequin added stdlib Python modules in the Lib dir performance Performance or resource usage labels Mar 4, 2008
    @jafo
    Copy link
    Mannequin

    jafo mannequin commented Mar 20, 2008

    This patch looks good to me. Greg?

    @jafo jafo mannequin added easy stdlib Python modules in the Lib dir and removed stdlib Python modules in the Lib dir labels Mar 20, 2008
    @jafo jafo mannequin assigned gward Mar 20, 2008
    @akitada
    Copy link
    Mannequin

    akitada mannequin commented Feb 4, 2009

    Still present in 2.6/3.0

    @akitada akitada mannequin added type-bug An unexpected behavior, bug, or error and removed performance Performance or resource usage labels Feb 4, 2009
    @merwok
    Copy link
    Member

    merwok commented Jun 12, 2010

    Confirmed in trunk (2.7rc2), py3k (3.2), irrelevant for distutils2. Is it too late for 2.7?

    @gward
    Copy link
    Mannequin

    gward mannequin commented Jun 29, 2010

    Is it too late for 2.7?

    I have no idea.

    It does look as though someone has written unit tests for distutils, so the patch needs a test change too. Henrique?

    @gward
    Copy link
    Mannequin

    gward mannequin commented Aug 27, 2010

    I'm unassigning this since I no longer know how to commit changes to Python. Sorry, I just haven't kept track over the years, I don't follow python-dev anymore, and I could not find documentation explaining where I should commit what sort of changes.

    @gward gward mannequin assigned tarekziade and unassigned gward Aug 27, 2010
    @chromano
    Copy link
    Mannequin

    chromano mannequin commented Sep 15, 2010

    Patch updated, now it includes test.

    @chromano
    Copy link
    Mannequin

    chromano mannequin commented Sep 15, 2010

    Improving tests

    @orsenthil
    Copy link
    Member

    Fixed for py3k in r84861, release31-maint in r84863 and release27-maint in r84862.

    Thanks for patch, Carlos Henrique Romano.

    @bitdancer
    Copy link
    Member

    This update appears to be turning the windows buildbots red. See for example http://www.python.org/dev/buildbot/all/builders/x86 XP-4 3.1/builds/1230/steps/test/logs/stdio.

    @bitdancer bitdancer reopened this Sep 17, 2010
    @orsenthil
    Copy link
    Member

    I have skipped the mode tests on windows platforms, as they are not
    really applicable.
    Lets see the buildbots status and close the bug.

    @pitrou
    Copy link
    Member

    pitrou commented Sep 18, 2010

    All buildbots are red.

    @pitrou pitrou assigned orsenthil and unassigned tarekziade Sep 18, 2010
    @chromano
    Copy link
    Mannequin

    chromano mannequin commented Sep 19, 2010

    Updating test in order to consider umask, this is supposed to fix buildbot issues.

    @orsenthil
    Copy link
    Member

    Buildbots are green now after fixing the mode issue in the tests in r84889,r84890,r84891

    @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
    easy stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    4 participants