WebOct 1, 2024 · include_package_data will only make sure that all non-Python files present inside the package directory in the sdist are also copied over to the wheel. But you need to make sure these files are present in the sdist in the first place... So my conclusion is that for your case what is missing is either: WebFeb 20, 2024 · # pyproject.toml [tool.setuptools] include-package-data = true package-dir = {"" = "src"} [tool.setuptools.packages.find] where = ["src"] exclude = ["tests"] namespaces = true You can also try removing py_modules = or packages = to see if the new implementation manages to find the correct modules/packages.
7 Ways to Include Non-Python Files into the Python Package - Turing
Webinclude_package_dataand zip_safemight not be. include_package_datatells setuptools to look for a MANIFEST.infile and install all the entries that match as package data. We will use this to distribute the static files and templates along with the Python module (see Distributing Resources). The zip_safeflag can be used to WebDec 9, 2024 · Modules and __init__.py. When the python interpreter encounters the following line: 1. import mymodule. It will try to find a directory called mymodule that contains a file with the special name __init__.py, which is then executed: 1 2 3. $ ls site-packages/mymodule/ __init__.py _mymodule.so. im with instacart should i be a s corporation
Building a PyPI Package for a Modern C++ Project - Thomas Trapp
WebSep 21, 2024 · Include Python packages and modules Another way to specify imports is by using a Python-style package namespace rather than a file path, using the --include-package option. For instance,... WebUsing packages disables the package auto-detection feature meaning you have to explicitly specify the “default” package. For instance, if you have a package named my_package and you want to also include another package named extra_package, you will need to specify my_package explicitly: WebI agree, this looks like a bug. However, when you say --include-module=some_package that limits the inclusion apparently and is not what is intended. I assume if you remove it, the issue is gone, because parent packages get included. For including a whole package, you put --include-package.But it seems I will need to have a look of my own and h5py could … imwithherband