Permalink
Browse files

Include thrift bindings with the package.

Why? Looks like thrift won't install cleanly off PyPI, either. Sigh.
  • Loading branch information...
1 parent 8e13f05 commit 4d540f0eae1cd9e21c427a66e750bcf291c9296c @jacobian jacobian committed Apr 6, 2010
Showing with 13 additions and 5 deletions.
  1. +1 −0 .gitignore
  2. +10 −3 fabfile.py
  3. +2 −2 setup.py.in
View
@@ -1,4 +1,5 @@
*.pyc
dist/
+src/
evernote*
setup.py
View
@@ -24,15 +24,22 @@ def sdist():
if not unziped_dir.exists():
local('unzip %s' % api_zip_name)
- local('cp -r -f %s/lib/python/evernote evernote' % unziped_dir)
+ local('cp -r -f %s/lib/python src' % unziped_dir)
with nested(open('setup.py.in'), open('setup.py', 'w')) as (fin, fout):
- fout.write(fin.read() % {'version': unziped_dir.stem.split('-')[-1]})
+ fout.write(fin.read() % {'version': api_zip_name.stem.split('-')[-1]})
local('python setup.py sdist')
def clean():
"""
Clean up any leftovers.
"""
- local('rm -rf dist evernote* setup.py')
+ local('rm -rf dist src evernote* setup.py')
+
+def upload():
+ """
+ Push a tarball to PyPI.
+ """
+ sdist()
+ local('python setup.py register upload')
View
@@ -14,8 +14,8 @@ setup(
url = 'http://www.evernote.com/about/developer/api/',
description = 'Python bindings to the Evernote API.',
long_description = read('README.txt'),
- packages = find_packages(),
- install_requires = ['thrift'],
+ packages = find_packages('src'),
+ package_dir = {'': 'src'},
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',

0 comments on commit 4d540f0

Please sign in to comment.