sethhall / chromium-compact-language-detector

Automatically exported from code.google.com/p/chromium-compact-language-detector
0 stars 0 forks source link

setup sdist #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
python setup.py sdist does not work because of 2 reasons

1. there are swap files checked in with '#' in their names, this lets 
setuptools fail

solution: find . -name '*#*' -delete

2. the header files are not included in the source package

solution:

add attached MANIFEST.in file 

this makes the normal setup.py build in source release work

Original issue reported on code.google.com by berndd...@gmail.com on 7 Mar 2012 at 2:39

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by luc...@mikemccandless.com on 7 Mar 2012 at 5:03

GoogleCodeExporter commented 9 years ago
Egads, those *#* files were just silly...

I committed this and was able to run "python setup.py sdist" so I think we are 
good?

Thanks bernddorn!

Original comment by luc...@mikemccandless.com on 7 Mar 2012 at 5:06

GoogleCodeExporter commented 9 years ago
hi

thanks for the changes, but the MANIFEST.in file is still missing. this file is 
required because setuptools needs to know which files it needs to include in 
the source distribution. there are default file patterns which are included, 
but it seems that *.h files are not by default.

to reproduce the problem do:

python setup.py sdist
cd /somewhere/else
tar zxvf project/dist/*.tgz
cd /somewhere/else 
python setup.py build

the last command failes because the header files are missing

if this is fixed, the package can be used from projects which have egg 
dependencies in a standard way. for example we use buildout a lot in our 
projects and just specify the location of the sdist file.

another improvement would be to upload the source package to 
http://pypi.python.org/pypi so standard package managers would just fetch if 
from there without the need to explicitlybuild the source distribution. i think 
this great package would get more visibility and users once it is on pypi.

Original comment by berndd...@gmail.com on 8 Mar 2012 at 7:22

GoogleCodeExporter commented 9 years ago
Argh, I had forgotten to hg add MANIFEST.in; now it's in & pushed.

I'll also upload to pipi!

Thanks.

Original comment by luc...@mikemccandless.com on 8 Mar 2012 at 10:42

GoogleCodeExporter commented 9 years ago
OK, I think I've successfully pushed the source dist to pypi:

    http://pypi.python.org/pypi/chromium_compact_language_detector/0.031415

Original comment by luc...@mikemccandless.com on 9 Mar 2012 at 11:50