Skip to content

Commit

Permalink
package icudtl.dat file in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetWq authored and HinTak committed Nov 4, 2024
1 parent 57e705c commit b7840b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
'SKIA_OUT_PATH', os.path.join(SKIA_PATH, 'out', 'Release')
)

data_files = []
if sys.platform == 'win32':
DEFINE_MACROS = [] # doesn't work for cl.exe
LIBRARIES = [
Expand Down Expand Up @@ -54,6 +55,7 @@
'/OPT:ICF',
'/OPT:REF',
]
data_files = [('Lib/site-packages', [os.path.join(SKIA_OUT_PATH, 'icudtl.dat')])]
elif sys.platform == 'darwin':
DEFINE_MACROS = [
('VERSION_INFO', __version__),
Expand Down Expand Up @@ -173,6 +175,7 @@ def build_extensions(self):
long_description=open('README.md', 'r').read(),
long_description_content_type='text/markdown',
ext_modules=[extension],
data_files=data_files,
install_requires=[
'numpy',
'pybind11>=2.6'
Expand Down

0 comments on commit b7840b5

Please sign in to comment.