[BUG] pyproject.toml doesn't always install all entry points, but setup.py does
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 1.4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
setuptools version
67.4.0
Python version
python 3.10.10
OS
Windows
Additional environment information
I've got a large command line set that I use across platforms called zcmds
Recently I noticed that the root command zcmds which is designed to print out all commands, was missing. Looking at the **/Scripts directory I see that some of the executables are installed, some of them are not.
Description
I was able to resolve it by folding pyproject.toml into the setup.py file. Now everything works!
This is the broken version:
https://github.com/zackees/zcmds/commit/04e85af5504a7cbc829dd727d7c2a468f75a07e9
And this works:
https://github.com/zackees/zcmds/commit/2c9b19561b5ddf93cd302571e010cf22cabac478
The difference between these two change lists is folding pyproject.toml into setup.py and the deletion of pyproject.toml
Expected behavior
I expect the zcmds toolset and all exe's to be generated.
How to Reproduce
git clone https://github.com/zackees/zcmds
cd zcmds
pip install -e .
zcmds
You should see
zcmds:
common:
archive
askai
audnorm
comports
diskaudit
findfiles
fixinternet
geninvoice
gitsummary
img2vid
img2webp
imgai
losslesscut
myip
obs_organize
pdf2png
pdf2txt
printenv
say
search_and_replace
search_in_files
sharedir
stereo2mono
test_net_connection
vid2gif
vid2jpg
vid2mp3
vid2mp4
vid2webm
vidcat
vidclip
viddur
vidhero
vidinfo
vidlist
vidmatrix
vidmute
vidshrink
vidspeed
vidvol
vidwebmaster
whichall
zcmds
win32:
cat
cp
du
fixvmmem
git-bash
grep
home
ls
mv
open
rm
sudo
touch
which
Instead there is a file not found error.
Output
Note that yes, I did remove python 3.10 and did a fresh re-install and the problem still persisted.
If you want to use my exact copy of python 3.10 then use this installer that I've saved to my github:
https://github.com/zackees/python3.10.
You can also use this script at the Win command terminal which will install python 3.10 and add it to the path.
powershell -Command "Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/zackees/python3.10/main/winpyinstall310.bat' -OutFile 'winpyinstall310.bat'; .\winpyinstall310.bat"
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the linked broken and working revisions, especially pyproject.toml and setup.py, then reproduce the editable install with Python 3.10 on Windows using pip install -e .. Check how setuptools discovers the entry points and verify that the expected zcmds executable set is generated without the file-not-found error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100