Skip to content

Commit d60e1ea

Browse files
committed
win32/x86: Pack the CAPI struct; skip LIB/PDB files instead of just DLL.
1 parent 1623f20 commit d60e1ea

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

dss_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def process_header(src, extern_py=False, implement_py=False, prefix='', flags=No
175175
extra_source_dss += '#include <altdss/capi/capi.h>\n'
176176
extra_source_dss += f.read()
177177

178-
ffi_builder_dss.cdef(cffi_header_dss)
178+
ffi_builder_dss.cdef(cffi_header_dss, packed=True)
179179

180180
lib_dir = os.path.join(DSS_CAPI_PATH, 'lib/{}'.format(PLATFORM_FOLDER))
181181
inc_dir = os.path.join(DSS_CAPI_PATH, 'include')

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@
5757
for fn in glob.glob(os.path.join(base_dll_path_in, '*{}'.format(DLL_SUFFIX))):
5858
shutil.copy(fn, dll_path_out)
5959

60-
# Copy libs (easier to build custom extensions with a default DSS Python installation)
61-
for pattern in ('*.lib', '*.a', '*.pdb'):
62-
for fn in glob.glob(os.path.join(base_dll_path_in, pattern)):
63-
shutil.copy(fn, dll_path_out)
60+
# Copy libs (easier to build custom extensions with a default DSS Python installation)
61+
for pattern in ('*.lib', '*.a', '*.pdb'):
62+
for fn in glob.glob(os.path.join(base_dll_path_in, pattern)):
63+
shutil.copy(fn, dll_path_out)
6464

6565
# Copy headers
6666
if os.path.exists(include_path_out):

0 commit comments

Comments
 (0)