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

btrfs-progs: libbtrfsutil/python: fix all the warnings #896

Merged
merged 2 commits into from
Sep 21, 2024

Commits on Sep 21, 2024

  1. btrfs-progs: libbtrfsutil/python: use MANIFEST.in for headers

    [BUG]
    Currently with python3.12, the python bindding will always result the
    following warning:
    
        [PY]     libbtrfsutil
    /usr/lib/python3.12/site-packages/setuptools/_distutils/extension.py:134: UserWarning: Unknown Extension options: 'headers'
      warnings.warn(msg)
    
    [CAUSE]
    In the setup.py which specifies the files to be included into the package,
    we use setuptools::Extension to specify the file lists and include paths.
    
    But there is no handling of Extension::headers member, thus resulting the
    above warning.
    
    [FIX]
    According to the docs of setuptools, MANIFEST.in is the file controlling
    what files should be included.
    So instead of the non-supported headers, use MANIFEST.in to include the
    needed headers.
    
    Signed-off-by: Qu Wenruo <[email protected]>
    adam900710 committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    6680104 View commit details
    Browse the repository at this point in the history
  2. btrfs-progs: libbtrfsutil/python: reuse existing README.md for long d…

    …escription
    
    Instead of copying the file during custom build commands, just use a
    soft link to re-use the existing README.d from libbtrfsutil.
    
    Issue: kdave#310
    Signed-off-by: Qu Wenruo <[email protected]>
    adam900710 committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    4e6c623 View commit details
    Browse the repository at this point in the history