Skip to content

Commit

Permalink
Now correctly includes data directory on PyPi installation
Browse files Browse the repository at this point in the history
  • Loading branch information
jorvis committed Jun 21, 2017
1 parent f2f4c7e commit b1a7d38
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build/make_pypi_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ def main():

# create the manifest
manifest_fh = open("{0}/MANIFEST.in".format(args.output_directory), 'wt')
manifest_fh.write("include README.rst\n")
manifest_fh.write("graft data\n")
manifest_fh.write("include biocode/README.rst\n")
# perhaps do this instead of graft? recursive-include biocode/data *.template
manifest_fh.write("graft biocode/data\n")

# include the license
shutil.copy('LICENSE', "{0}/".format(args.output_directory))
Expand Down Expand Up @@ -201,7 +202,7 @@ def populate_setup_file(fh, version, script_paths):
from pypandoc import convert
read_md = lambda f: convert(f, 'rst', 'md')
except ImportError:
raise Exception("warning: pypandoc module not found, could not convert Markdown to RST")
raise Exception("Error: pypandoc module not found, could not convert Markdown to RST")
read_md = lambda f: open(f, 'r').read()
setup(name='biocode',
Expand Down

0 comments on commit b1a7d38

Please sign in to comment.