Skip to content

Commit

Permalink
Separate handling of snow leopard and lion
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaussel committed Oct 22, 2011
1 parent 52a5200 commit 733b1e6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
21 changes: 18 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,28 @@
platform_extra_link_args = ['-arch', 'i386', '-arch', 'ppc', '-ggdb']

#
# Mac OS X Snow Leopard, python 2.6
# Mac OS X Lion, python 2.7
# PowerPC is no more supported, x86_64 is new
#
# Mac OS X Lion, python 2.7
# x86_64 and i386
#
elif 'macosx-10.6' in get_platform() or 'macosx-10.7' in get_platform():
elif 'macosx-10.7' in get_platform():
platform__cc_defines = [('PCSCLITE', '1'),
('__APPLE__', '1'),
('__LION__', '1')]
platform_swig_opts = ['-DPCSCLITE', '-D__APPLE__', '-D__LION__']
platform_sources = []
platform_libraries = []
platform_include_dirs = []
platform_extra_compile_args = ['-v', '-arch', 'i386',
'-arch', 'x86_64', '-ggdb']
platform_extra_link_args = ['-arch', 'i386', '-arch', 'x86_64', '-ggdb']

#
# Mac OS X Snow Leopard, python 2.6
# PowerPC is no more supported, x86_64 is new
#
elif 'macosx-10.6' in get_platform():
platform__cc_defines = [('PCSCLITE', '1'),
('__APPLE__', '1'),
('__LEOPARD__', '1')]
Expand Down
2 changes: 2 additions & 0 deletions smartcard/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
1.6.14 (October 2011)
===================
* added support for windows 64bit amd64 (Jean-Daniel Aussel)
* support python "new" classes (derive classes from object) (Ludovic Rousseau from chrysn suggestion)


1.6.12 (August 2010)
===================
Expand Down
3 changes: 3 additions & 0 deletions smartcard/scard/scard.i
Original file line number Diff line number Diff line change
Expand Up @@ -2086,6 +2086,9 @@ def SCardLocateCards(hcontext, cardnames, readerstates):
#ifdef __LEOPARD__
%constant char* resourceManagerSubType = "pcsclite-leopard" ;
#endif //__LEOPARD__
#ifdef __LION__
%constant char* resourceManagerSubType = "pcsclite-lion" ;
#endif //__LION_
#else // !__APPLE__
%constant char* resourceManagerSubType = "pcsclite-linux" ;
#endif // __APPLE__
Expand Down

0 comments on commit 733b1e6

Please sign in to comment.