pypa / pypa/setuptools

[Docs] Replacement for `distutils.command.install_data` ?

Open
#4,070 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation Needs Triage
Dominant language
Python
Stars
2.9k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Summary

I'm looking into progressively migrating distutil usage in pywin32 (https://github.com/mhammond/pywin32/issues/2119), where distutils.command.install_data.install_data is used.
https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html#prefer-setuptools and https://peps.python.org/pep-0632/#migration-advice mention that distutils.command.* should be replaced by setuptools.command.*. However, setuptools.command.install_data does not exist. I searched the documentation for install_data and could not find any deprecation or migration mention.

OS / Environment

Windows 10
Python 3.9
setuptools 68.2.2

Additional Information

Document a migration path for distutils.command.install_data

Code of Conduct
  • I agree to follow the PSF Code of Conduct

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Setuptools deprecated-distutils guidance and PEP 632, then compare them with the reported use of distutils.command.install_data in pywin32 issue #2119. Document a supported migration path for install_data, including the relevant replacement or alternatives, and verify that the guidance addresses the reported setuptools 68.2.2 case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.