Include extra file in a Python package using setuptools
The package needs to include two files mymodule py a python module in the same directory as setup py myjar jar a java jar file that exists outside of my package directory I am building my package using python3 setup py bdist wheel If I call setup like so
4 Using Python on Windows Python 3 12 1 documentation, Installation steps Four Python 3 12 installers are available for download two each for the 32 bit and 64 bit versions of the interpreter The web installer is a small initial download and it will automatically download the required components as necessary

Data Files Support setuptools 69 0 3 post20240111 documentation
New in version v61 0 0 The default value for tool setuptools include package data is True when projects are configured via pyproject toml This behaviour differs from setup cfg and setup py where include package data False by default which was not changed to ensure backwards compatibility with existing projects
How include static files to setuptools python package, 1 include package data True MANIFEST in A MANIFEST in file in the same directory of setup py that looks like this include src static include src Potato txt With include package data True in setup py 2 package data in setup py package data static Potato txt Specify the files inside the setup py
![]()
2 Writing the Setup Script Python 3 8 17 documentation
2 Writing the Setup Script Python 3 8 17 documentation, The setup script is the centre of all activity in building distributing and installing modules using the Distutils The main purpose of the setup script is to describe your module distribution to the Distutils so that the various commands that operate on your modules do the right thing

Setup py
Packaging and distributing projects Python Packaging User Guide
Packaging and distributing projects Python Packaging User Guide Setup py serves two primary functions It s the file where various aspects of your project are configured The primary feature of setup py is that it contains a global setup function The keyword arguments to this function are how specific details of your project are defined The most relevant arguments are explained in the section below

Python Setup py Uninstall
Where command is one of the Distutils commands e g build py install and option is one of the options that command supports Any number of options can be supplied for each command and any number of command sections can be included in the file Blank lines are ignored as are comments which run from a character until the end of the line Long option values can be split across multiple 3 Writing the Setup Configuration File Python 3 8 17 documentation. The find and find namespace directive can be further configured in a dedicated subsection options packages find This subsection accepts the same keys as the setuptools find packages and the setuptools find namespace packages function where include and exclude The find namespace directive is supported since Python 3 3 Including files in source distributions with MANIFEST in Including files in source distributions with MANIFEST in The information on this page has moved to Controlling files in the distribution in the setuptools documentation
![]()
Another Python Setup Py Add Include Directory you can download
You can find and download another posts related to Python Setup Py Add Include Directory by clicking link below
- AED C LibXL Excel
- Visual Studio 2012 2022 C Project Settings
- Python Pip Command python Setup py Egg info Failed With Error Code
- Code Block Usage Under Ubuntu Opencoder
- Troubleshooting Missing Header File Issues VisualGDB Documentation
Thankyou for visiting and read this post about Python Setup Py Add Include Directory