Skip to content

Commit

Permalink
Fix path to data_files
Browse files Browse the repository at this point in the history
This should not include sys.prefix because that will be the environment
the conda package was created in, not the one you want to install
into.
  • Loading branch information
xylar committed Mar 20, 2019
1 parent 61adcce commit 61cec4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_all_files_in_dir(directory, pattern):
rgb_files = get_all_files_in_dir('acme_diags/plot/colormaps', '*.rgb')
control_runs_files = get_all_files_in_dir('acme_diags/driver/control_runs', '*.csv')

INSTALL_PATH = os.path.join(sys.prefix, 'share/e3sm_diags/')
INSTALL_PATH = 'share/e3sm_diags/'

data_files = [
(os.path.join(INSTALL_PATH, 'zonal_mean_xy'),
Expand Down Expand Up @@ -65,7 +65,7 @@ def get_all_files_in_dir(directory, pattern):

setup(
name="e3sm_diags",
version="1.6.0",
version="1.6.1",
author="Chengzhu (Jill) Zhang, Zeshawn Shaheen",
author_email="[email protected], [email protected]",
description="E3SM Diagnostics",
Expand Down

0 comments on commit 61cec4a

Please sign in to comment.