SciPyCentral icon indicating copy to clipboard operation
SciPyCentral copied to clipboard

Clean compiled files while uploading package

Open ksurya opened this issue 9 years ago • 4 comments

Need to ignore several files with common extensions from the uploading zip file when user submits is as package.

Common extensions: .pyc, ~, etc.

ksurya avatar May 29 '15 20:05 ksurya

Can be done by adding to MANIFEST.in:

prune */__pycache__
global-exclude *.pyc *~ *.bak *.swp *.pyo

rgommers avatar May 30 '15 09:05 rgommers

This is actually the ZIP file user submits on the website. We basically create a Hg repo, extract zip files into it. During this extraction, we have to ignore these files you mentioned.

Can manifest.in help to do that?

ksurya avatar May 30 '15 18:05 ksurya

Ah sorry, I misread the issue - never mind my suggestion.

rgommers avatar May 31 '15 10:05 rgommers

No problem :)

ksurya avatar Jun 01 '15 01:06 ksurya