Skip to content

Commit

Permalink
install data files.
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed May 8, 2011
1 parent 8a907a8 commit 33e6ce8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion couchapp/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ def find_template_dir(name, directory=''):
default_locations.extend([os.path.join(os.path.dirname(modpath), p,
directory) for p in paths])


if sys.platform == "darwin":
home = os.path.expanduser('~'),
data_path = "%s/Library/Application Support/Couchapp" % home
Expand Down
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from distutils.command import build_ext
from distutils.command.build import build
from distutils.command.install_data import install_data
import glob
from imp import load_source

import os
import sys

Expand Down Expand Up @@ -82,15 +82,16 @@
'-fPIC',
]
))"""


def get_data_files():
data_files = []
data_files.append(('couchapp',
["LICENSE", "MANIFEST.in", "NOTICE", "README.md",
"THANKS.txt",]))
return data_files


def ordinarypath(p):
return p and p[0] != '.' and p[-1] != '~'

Expand Down Expand Up @@ -261,7 +262,9 @@ def main():
package_dir = PACKAGES,
data_files = DATA_FILES,
package_data = get_packages_data(),
cmdclass = {'build_ext': my_build_ext},
cmdclass = {
'build_ext': my_build_ext,
'install_data': install_package_data},
scripts=get_scripts(),
options = dict(py2exe={
'dll_excludes': [
Expand Down

0 comments on commit 33e6ce8

Please sign in to comment.