piqueserver / pyenet

A python wrapper for the ENet library (this fork is the source for the pypi package)
BSD 3-Clause "New" or "Revised" License
13 stars 6 forks source link

pip install fails on macos #9

Open vladfi1 opened 1 month ago

vladfi1 commented 1 month ago

Trying to pip install pyenet fails on MacOS with

enet.c:785:10: fatal error: 'enet/types.h' file not found

I believe the issue is that the enet sources are not included in the tarball.

NotAFile commented 1 month ago

hm, it should be, theoretically, but perhaps something changed

vladfi1 commented 1 month ago

Could be related to #8 which changed the enet folder to a submodule.

vladfi1 commented 1 month ago

A workaround is to install directly from github (pip install git+https://github.com/piqueserver/pyenet) which correctly initializes the enet submodule before building.

NotAFile commented 1 month ago

Yeah, it sounds like the sdist just doesn't contain the enet files for whatever reason.

Which is confusing, because it's listed as a source folder, the wheels build fine and I don't think that was changed. @utf-4096 might have a better idea.