openSUSE / py2pack

Generate distribution packages from PyPI
Apache License 2.0
69 stars 40 forks source link

Fails on Windows: ModuleNotFoundError: No module named 'pwd' #126

Open jayvdb opened 5 years ago

jayvdb commented 5 years ago

pwd is needed for a user_name field.

I guess a Windows implementation could be created, but maybe a warning will suffice?

toabctl commented 5 years ago

Do we really need to support windows? I don't see a usecase to do rpm packaging on windows tbh...

jayvdb commented 5 years ago

MinGW runs on Windows, and there are quite a few packages which are 'Windows' only. I would approach this more as degrading gracefully rather than supporting Windows

toabctl commented 5 years ago

Why do we need to package stuff that is windows-only? I still don't understand the problem here.

jayvdb commented 5 years ago

https://build.opensuse.org/project/show/windows:mingw

toabctl commented 5 years ago

https://build.opensuse.org/project/show/windows:mingw

ok. How is that related to py2pack?

mcepl commented 5 years ago

Well, I guess, patches welcome? How do you find out the current users name in Windows?

zveljkovic commented 4 years ago

echo %USERNAME% i think