File tree Expand file tree Collapse file tree 5 files changed +7
-17
lines changed
Expand file tree Collapse file tree 5 files changed +7
-17
lines changed Original file line number Diff line number Diff line change 2323# our choice of version suffix is constrained by PEP 440
2424# so we always append .99.ABI.SRC to most recent upstream version
2525# the following line is matched from cibuild.py
26- package_version = '7.0.7.99.1.2a1 '
26+ package_version = '7.0.7.99.1.2a2 '
2727
2828assert package_version .split ('.' )[- 3 ]== '99' , package_version
2929
Original file line number Diff line number Diff line change 1717
1818
1919import ctypes
20+ import platform
2021
2122from epicscorelibs import path
2223
2324from . import py23
2425
25- if path . OS_CLASS == "WIN32 " :
26+ if platform . system () == "Windows " :
2627 # On windows, use stdcall calling convention for libca
2728 libca = ctypes .WinDLL (path .get_lib ("ca" ), ctypes .RTLD_GLOBAL )
2829else :
Original file line number Diff line number Diff line change 55import ctypes
66import code
77import argparse
8+ import platform
89import sys
910import os
1011import atexit
1516
1617
1718# The libraries we need to run up a soft IOC, don't load dbCore twice
18- if path . OS_CLASS == "WIN32 " :
19+ if platform . system () == "Windows " :
1920 Com = ctypes .WinDLL (path .get_lib ("Com" ), mode = ctypes .RTLD_GLOBAL )
2021else :
2122 Com = ctypes .CDLL (path .get_lib ("Com" ), mode = ctypes .RTLD_GLOBAL )
Original file line number Diff line number Diff line change 11
22import os
3- from glob import glob
43
5- from ..config import get_config_var
64from setuptools_dso .runtime import dylink_prepare_dso , find_dso
75
86__all__ = (
1210)
1311
1412base_path = os .path .abspath (os .path .join (os .path .dirname (__file__ ), '..' ))
15-
16-
17- # parts of library file names
18- OS_CLASS = get_config_var ("OS_CLASS" )
19- if OS_CLASS == 'WIN32' :
20- _prefix , _suffix = '' , '.dll'
21- elif OS_CLASS == 'Darwin' :
22- _prefix , _suffix = 'lib' , '.dylib'
23- else :
24- _prefix , _suffix = 'lib' , '.so'
25-
2613include_path = os .path .join (base_path , 'include' )
2714lib_path = os .path .join (base_path , 'lib' )
2815
Original file line number Diff line number Diff line change 33
44import os
55import ctypes
6+ import platform
67
78from .. import path
89
@@ -14,7 +15,7 @@ def test_loading():
1415
1516 ca = ctypes .CDLL (path .get_lib ('ca' ), mode = ctypes .RTLD_GLOBAL )
1617
17- if path . OS_CLASS == 'WIN32' :
18+ if platform . system () == "Windows" :
1819 # Base libs contain functions using a mixture of cdecl and stdcall calling conventions
1920 # make WinDLL w/o actually loading again
2021 ca_s = ctypes .WinDLL (ca ._name , handle = ca ._handle )
You can’t perform that action at this time.
0 commit comments