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

NuGet python.props only works in python nuget, not other variants #85910

Closed
vslavik mannequin opened this issue Sep 8, 2020 · 9 comments
Closed

NuGet python.props only works in python nuget, not other variants #85910

vslavik mannequin opened this issue Sep 8, 2020 · 9 comments
Assignees
Labels
3.8 only security fixes 3.9 only security fixes 3.10 only security fixes OS-windows type-bug An unexpected behavior, bug, or error

Comments

@vslavik
Copy link
Mannequin

vslavik mannequin commented Sep 8, 2020

BPO 41744
Nosy @pfmoore, @tjguk, @vslavik, @methane, @zware, @zooba, @miss-islington
PRs
  • bpo-41744: Package NuGet python.props with correct name to be used #22154
  • [3.9] bpo-41744: Package python.props with correct name in NuGet package (GH-22154) #22245
  • [3.8] bpo-41744: Package python.props with correct name in NuGet package (GH-22154) #22246
  • 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/zooba'
    closed_at = <Date 2020-09-14.19:32:06.581>
    created_at = <Date 2020-09-08.15:33:50.205>
    labels = ['3.10', 'type-bug', '3.8', '3.9', 'OS-windows']
    title = 'NuGet python.props only works in python nuget, not other variants'
    updated_at = <Date 2020-10-21.05:15:26.175>
    user = 'https://github.com/vslavik'

    bugs.python.org fields:

    activity = <Date 2020-10-21.05:15:26.175>
    actor = 'methane'
    assignee = 'steve.dower'
    closed = True
    closed_date = <Date 2020-09-14.19:32:06.581>
    closer = 'steve.dower'
    components = ['Windows']
    creation = <Date 2020-09-08.15:33:50.205>
    creator = 'vslavik'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41744
    keywords = ['patch']
    message_count = 9.0
    messages = ['376577', '376580', '376678', '376696', '376798', '376893', '376895', '376899', '379190']
    nosy_count = 7.0
    nosy_names = ['paul.moore', 'tim.golden', 'vslavik', 'methane', 'zach.ware', 'steve.dower', 'miss-islington']
    pr_nums = ['22154', '22245', '22246']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41744'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    @vslavik
    Copy link
    Mannequin Author

    vslavik mannequin commented Sep 8, 2020

    NuGet automatically includes .props file from the build directory in the target using the package, but only if the file has the correct name: it must be $(id).props. This means that Python's support for this only works correctly in the python nuget packages, but not in pythonx86 and others, because the file is copied as python.props (instead of pythonx86.props etc) there too.

    @vslavik vslavik mannequin added OS-windows type-bug An unexpected behavior, bug, or error labels Sep 8, 2020
    @zooba
    Copy link
    Member

    zooba commented Sep 8, 2020

    Thanks for the contribution! I think I only ever tested this with the 64-bit package... :)

    Could you make it so that we include the file under both names? Just for anyone (like me) who has hard-coded the python.props name and parametrised the directory name.

    (If you want to go for bonus points, having the extra file just <Import> the other would be a nice touch, but not so important.)

    @zooba zooba added 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes labels Sep 8, 2020
    @vslavik
    Copy link
    Mannequin Author

    vslavik mannequin commented Sep 10, 2020

    Thank you, I didn't consider that situation. I forced-pushed an update to the PR now.

    I opted for duplicate file rather than including, because I think it imposes the least maintenance burden on keeping compatibility: the other alternative would mean

    • one more file
    • either a more complicated logic or the primary file including the compat one (so "normal" path slightly more convoluted)
    • tiny, but not 100% trivial difference between python nuget and the other ones.

    @zooba
    Copy link
    Member

    zooba commented Sep 10, 2020

    Thanks! Just need a NEWS file (click Details next to the failed check for the helper app). Something like "Fixes automatic import of props file when using the Nuget package" would be good.

    (Also posted on the PR)

    @vslavik
    Copy link
    Mannequin Author

    vslavik mannequin commented Sep 12, 2020

    Sorry for the omission (fixed now), and thanks for your patience!

    @zooba
    Copy link
    Member

    zooba commented Sep 14, 2020

    New changeset 7c11a9a by Václav Slavík in branch 'master':
    bpo-41744: Package python.props with correct name in NuGet package (GH-22154)
    7c11a9a

    @zooba
    Copy link
    Member

    zooba commented Sep 14, 2020

    Thanks!

    @zooba zooba closed this as completed Sep 14, 2020
    @zooba zooba self-assigned this Sep 14, 2020
    @zooba zooba closed this as completed Sep 14, 2020
    @zooba zooba self-assigned this Sep 14, 2020
    @miss-islington
    Copy link
    Contributor

    New changeset b007a9b by Miss Islington (bot) in branch '3.8':
    bpo-41744: Package python.props with correct name in NuGet package (GH-22154)
    b007a9b

    @methane
    Copy link
    Member

    methane commented Oct 21, 2020

    New changeset d0bfce9 by Miss Skeleton (bot) in branch '3.9':
    bpo-41744: Package python.props with correct name in NuGet package (GH-22154)
    d0bfce9

    @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
    3.8 only security fixes 3.9 only security fixes 3.10 only security fixes OS-windows type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants