scipy / SciPyCentral

SciPy Central
http://scipy-central.org
BSD 3-Clause "New" or "Revised" License
16 stars 12 forks source link

Clean compiled files while uploading package #189

Open ksurya opened 9 years ago

ksurya commented 9 years ago

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

Common extensions: .pyc, ~, etc.

rgommers commented 9 years ago

Can be done by adding to MANIFEST.in:

prune */__pycache__
global-exclude *.pyc *~ *.bak *.swp *.pyo
ksurya commented 9 years ago

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?

rgommers commented 9 years ago

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

ksurya commented 9 years ago

No problem :)