Skip to content

Commit

Permalink
Modify spec file for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
AdenKoperczak committed Jan 8, 2025
1 parent 5da937c commit 11f7050
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions grib2pf.spec
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
# -*- mode: python ; coding: utf-8 -*-
import sys
EXCLUDE = {
"MSVCP140.dll",
"ucrtbase.dll",
}

grib2pf_a = Analysis(
['grib2pf.py'],
pathex=[],
binaries=[
BINARIES = None
if sys.platform.lower().startswith('win'):
BINARIES = [
('build\\grib2pf.dll', '.'),
('build\\bin\\eccodes.dll', '.'),
('build\\bin\\eccodes_memfs.dll', '.')
],
]
else:
BINARIES = [
('build/libgrib2pf.so', '.'),
('build/bin/libeccodes.so', '.'),
('build/bin/libeccodes_memfs.so', '.')
]

grib2pf_a = Analysis(
['grib2pf.py'],
pathex=[],
binaries=BINARIES,
datas=[
( "README.md", '.' ),
( "ACKNOWLEDGMENTS.md", "." ),
Expand Down

0 comments on commit 11f7050

Please sign in to comment.