-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.DS_Store file included in whl when building on Mac #297
Comments
I just checked and the
|
I don't have access to a Mac, but if you do |
I couldn't find anything in setuptools either that actively deals with |
I believe that |
@waylan if you do |
@gtback Yeah, that was my understanding as well. The user must have entered the |
So I have a .PHONY : deploy
deploy:
rm -rf dist
python setup.py bdist_wheel sdist --formats gztar
twine upload dist/* I suppose its possible I did things manually, but I can't imagine why. I'll try some test builds when I get home and report back. |
Not deleting the `build` dir before a new build could result in a dirty build. See pypa/wheel#297.
It seems that the My assumption here is that when doing a new build, the |
Not deleting the `build` dir before a new build could result in a dirty build. See pypa/wheel#297.
The problem lies with the distutils |
In fact this is a duplicate of #147 |
this worked for me |
.DS_Store files are created by the system for every directory on MacOS. However, I would not expect them to exist within a wheel. Yet, after building a wheel of my package (which we'll call
foobar
), I end up with the following file structure within the root of the wheel:Note that
.DS_Store
files do not exist in any of the sub-directories, only in the root directory. The only other mention of.DS_Store
in the wheel is an entry inFoobar-3.1.dist-info/RECORD
which lists the file along with all other files included in the wheel:I wondered if I had perhaps inadvertently added the file by inspecting the wheel after creating it. However, the file being listed in
RECORD
suggests is was added by the build tool. Of course, as.DS_Store
files are hidden on MacOS, I didn't notice the file when inspecting the wheel. It was only after a user reported an issue that it came to my attention. According to the user, "This triggers an error during installation because we are blocking this file name on our storage system."Wouldn't it make sense for the wheel builder to exclude
.DS_Store
files?Or, is there a way I can tell the wheel builder to exclude them?
The text was updated successfully, but these errors were encountered: