Skip to content

Commit

Permalink
include frictionless assets in pyinstaller builds. natcap#1662
Browse files Browse the repository at this point in the history
  • Loading branch information
davemfish committed Feb 3, 2025
1 parent 24bbac9 commit ed0a2d0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions exe/invest.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ exename = 'invest'
conda_env = os.environ['CONDA_PREFIX']

if is_win:
proj_datas = ((os.path.join(conda_env, 'Library/share/proj'), 'proj'))
proj_datas = (os.path.join(conda_env, 'Library/share/proj'), 'proj')
else:
proj_datas = ((os.path.join(conda_env, 'share/proj'), 'proj'))
proj_datas = (os.path.join(conda_env, 'share/proj'), 'proj')
frictionless_datas = (
os.path.join(conda_env, 'Lib/site-packages/frictionless/assets'),
'frictionless/assets')

kwargs = {
'hookspath': [os.path.join(current_dir, 'exe', 'hooks')],
Expand All @@ -34,7 +37,7 @@ kwargs = {
'scipy.special._special_ufuncs',
'scipy._lib.array_api_compat.numpy.fft',
],
'datas': [proj_datas],
'datas': [proj_datas, frictionless_datas],
'cipher': block_cipher,
}

Expand Down

0 comments on commit ed0a2d0

Please sign in to comment.