|
From: <lu...@us...> - 2008-10-26 12:36:03
|
Revision: 235
http://pyscard.svn.sourceforge.net/pyscard/?rev=235&view=rev
Author: ludov
Date: 2008-10-26 10:45:30 +0000 (Sun, 26 Oct 2008)
Log Message:
-----------
use the Linux configuration as the default setup instead of failing with
"unsupported platform". Linux is not just i586, i686 and x86_64
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2008-10-07 12:38:30 UTC (rev 234)
+++ trunk/pyscard/src/setup.py 2008-10-26 10:45:30 UTC (rev 235)
@@ -41,15 +41,6 @@
platform_extra_compile_args=[]
platform_extra_link_args=[]
-elif get_platform() in ('linux-i586', 'linux-i686', 'linux-x86_64'):
- platform__cc_defines=[('PCSCLITE', '1')]
- platform_swig_opts=['-DPCSCLITE']
- platform_sources=[]
- platform_libraries=['pcsclite']
- platform_include_dirs=['/usr/include/PCSC']
- platform_extra_compile_args=[]#['-ggdb', '-O0']
- platform_extra_link_args=[]#['-ggdb']
-
#
# Mac OS X Tiger has python 2.3 preinstalled
# get_platform() returns a string similar to 'darwin-8.11.1-i386' with python 2.3
@@ -76,7 +67,13 @@
platform_extra_compile_args=['-v','-framework', 'PCSC', '-arch', 'i386', '-arch', 'ppc', '-ggdb', '-O0']
platform_extra_link_args=['-arch', 'i386', '-arch', 'ppc','-ggdb', '-framework', 'PCSC' ]
else:
- sys.exit("unsupported platform: " + get_platform() )
+ platform__cc_defines=[('PCSCLITE', '1')]
+ platform_swig_opts=['-DPCSCLITE']
+ platform_sources=[]
+ platform_libraries=['pcsclite']
+ platform_include_dirs=['/usr/include/PCSC']
+ platform_extra_compile_args=[]#['-ggdb', '-O0']
+ platform_extra_link_args=[]#['-ggdb']
class _pyscardBuildExt(build_ext):
@@ -217,5 +214,3 @@
dir_util.mkpath( os.path.join( targetdir, newdir ) )
file_util.copy_file( file, os.path.join( targetdir, file ) )
-
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-01-13 09:27:43
|
Revision: 252
http://pyscard.svn.sourceforge.net/pyscard/?rev=252&view=rev
Author: ludov
Date: 2009-01-13 09:27:37 +0000 (Tue, 13 Jan 2009)
Log Message:
-----------
link against pythonx.y on GNU/Linux to avoid missing symbols in the generated _scard.so library
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-01-13 09:17:36 UTC (rev 251)
+++ trunk/pyscard/src/setup.py 2009-01-13 09:27:37 UTC (rev 252)
@@ -70,7 +70,7 @@
platform__cc_defines=[('PCSCLITE', '1')]
platform_swig_opts=['-DPCSCLITE']
platform_sources=[]
- platform_libraries=[]
+ platform_libraries=["python%d.%d" % sys.version_info[:2]]
platform_include_dirs=['/usr/include/PCSC']
platform_extra_compile_args=[]#['-ggdb', '-O0']
platform_extra_link_args=[]#['-ggdb']
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-01-13 13:20:24
|
Revision: 257
http://pyscard.svn.sourceforge.net/pyscard/?rev=257&view=rev
Author: ludov
Date: 2009-01-13 13:20:16 +0000 (Tue, 13 Jan 2009)
Log Message:
-----------
no need to link with the PCSC framework on Mac OS X since the library is
dynamically loaded during execution
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-01-13 10:27:21 UTC (rev 256)
+++ trunk/pyscard/src/setup.py 2009-01-13 13:20:16 UTC (rev 257)
@@ -52,7 +52,7 @@
platform_libraries=[]
platform_include_dirs=['PCSC']
platform_extra_compile_args=['-v','-framework', 'PCSC', '-arch', 'i386', '-arch', 'ppc', '-ggdb', '-O0']
- platform_extra_link_args=['-arch', 'i386', '-arch', 'ppc','-ggdb', '-framework', 'PCSC' ]
+ platform_extra_link_args=['-arch', 'i386', '-arch', 'ppc','-ggdb']
#
# Mac OS X Leopard has python 2.5 preinstalled
@@ -65,7 +65,7 @@
platform_libraries=[]
platform_include_dirs=['PCSC']
platform_extra_compile_args=['-v','-framework', 'PCSC', '-arch', 'i386', '-arch', 'ppc', '-ggdb', '-O0']
- platform_extra_link_args=['-arch', 'i386', '-arch', 'ppc','-ggdb', '-framework', 'PCSC' ]
+ platform_extra_link_args=['-arch', 'i386', '-arch', 'ppc','-ggdb']
else:
platform__cc_defines=[('PCSCLITE', '1')]
platform_swig_opts=['-DPCSCLITE']
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-01-13 13:21:34
|
Revision: 258
http://pyscard.svn.sourceforge.net/pyscard/?rev=258&view=rev
Author: ludov
Date: 2009-01-13 13:21:28 +0000 (Tue, 13 Jan 2009)
Log Message:
-----------
The PC/SC header files are not in a PCSC directory but found using
-framework PCSC
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-01-13 13:20:16 UTC (rev 257)
+++ trunk/pyscard/src/setup.py 2009-01-13 13:21:28 UTC (rev 258)
@@ -50,7 +50,7 @@
platform_swig_opts=[ '-DPCSCLITE', '-D__APPLE__', '-D__TIGER__' ]
platform_sources=[]
platform_libraries=[]
- platform_include_dirs=['PCSC']
+ platform_include_dirs=[]
platform_extra_compile_args=['-v','-framework', 'PCSC', '-arch', 'i386', '-arch', 'ppc', '-ggdb', '-O0']
platform_extra_link_args=['-arch', 'i386', '-arch', 'ppc','-ggdb']
@@ -63,7 +63,7 @@
platform_swig_opts=[ '-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__' ]
platform_sources=[]
platform_libraries=[]
- platform_include_dirs=['PCSC']
+ platform_include_dirs=[]
platform_extra_compile_args=['-v','-framework', 'PCSC', '-arch', 'i386', '-arch', 'ppc', '-ggdb', '-O0']
platform_extra_link_args=['-arch', 'i386', '-arch', 'ppc','-ggdb']
else:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-02-26 10:37:23
|
Revision: 270
http://pyscard.svn.sourceforge.net/pyscard/?rev=270&view=rev
Author: ludov
Date: 2009-02-26 10:37:17 +0000 (Thu, 26 Feb 2009)
Log Message:
-----------
Snow Leopard (10.6) and above are treated like Leopard (10.5)
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-02-23 08:47:51 UTC (rev 269)
+++ trunk/pyscard/src/setup.py 2009-02-26 10:37:17 UTC (rev 270)
@@ -58,7 +58,7 @@
# Mac OS X Leopard has python 2.5 preinstalled
# get_platform() returns a string similar to 'macosx-10.5-i386'
#
-elif 'macosx-10.5' in get_platform():
+elif 'macosx-10.' in get_platform():
platform__cc_defines=[ ('PCSCLITE', '1'), ('__APPLE__','1'), ('__LEOPARD__','1')]
platform_swig_opts=[ '-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__' ]
platform_sources=[]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-10-04 09:07:49
|
Revision: 313
http://pyscard.svn.sourceforge.net/pyscard/?rev=313&view=rev
Author: ludov
Date: 2009-10-04 09:07:37 +0000 (Sun, 04 Oct 2009)
Log Message:
-----------
add Mac OS X Snow Leopard support
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-07-29 21:22:44 UTC (rev 312)
+++ trunk/pyscard/src/setup.py 2009-10-04 09:07:37 UTC (rev 313)
@@ -55,6 +55,20 @@
platform_extra_link_args=['-arch', 'i386', '-arch', 'ppc','-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')]
+ platform_swig_opts=[ '-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__' ]
+ platform_sources=[]
+ platform_libraries=[]
+ platform_include_dirs=[]
+ platform_extra_compile_args=['-v','-framework', 'PCSC', '-arch',
+ 'i386', '-arch', 'x86_64', '-ggdb', '-O0']
+ platform_extra_link_args=['-arch', 'i386', '-arch', 'x86_64','-ggdb']
+
+#
# Mac OS X Leopard has python 2.5 preinstalled
# get_platform() returns a string similar to 'macosx-10.5-i386'
#
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-11-22 14:35:08
|
Revision: 338
http://pyscard.svn.sourceforge.net/pyscard/?rev=338&view=rev
Author: ludov
Date: 2009-11-22 14:34:40 +0000 (Sun, 22 Nov 2009)
Log Message:
-----------
pep8: E401 multiple imports on one line
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-11-22 14:33:02 UTC (rev 337)
+++ trunk/pyscard/src/setup.py 2009-11-22 14:34:40 UTC (rev 338)
@@ -27,7 +27,9 @@
from distutils.core import Extension
from distutils.util import get_platform
from distutils.command.build_ext import build_ext
-import glob, os, sys
+import glob
+import os
+import sys
if sys.version[0:1] == '1':
raise RuntimeError, ("pyscard requires Python 2.x to build.")
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-11-22 14:38:27
|
Revision: 339
http://pyscard.svn.sourceforge.net/pyscard/?rev=339&view=rev
Author: ludov
Date: 2009-11-22 14:38:20 +0000 (Sun, 22 Nov 2009)
Log Message:
-----------
pep8: W291 trailing whitespace
-- This line, and those below, will be ignored--
M src/setup.py
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-11-22 14:34:40 UTC (rev 338)
+++ trunk/pyscard/src/setup.py 2009-11-22 14:38:20 UTC (rev 339)
@@ -73,7 +73,7 @@
#
# Mac OS X Leopard has python 2.5 preinstalled
# get_platform() returns a string similar to 'macosx-10.5-i386'
-#
+#
elif 'macosx-10.' in get_platform():
platform__cc_defines=[ ('PCSCLITE', '1'), ('__APPLE__','1'), ('__LEOPARD__','1')]
platform_swig_opts=[ '-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__' ]
@@ -139,7 +139,7 @@
if self.swig_cpp:
swig_cmd.append("-c++")
- swig_cmd += platform_swig_opts
+ swig_cmd += platform_swig_opts
for source in swig_sources:
target = swig_targets[source]
@@ -147,7 +147,7 @@
self.spawn(swig_cmd + ["-o", target, source])
return new_sources
-
+
build_ext.swig_sources = swig_sources
kw = {'name':"pyscard",
@@ -216,7 +216,7 @@
# copy manually package_data
if sys.version_info < (2,4):
from distutils.util import convert_path
- from glob import glob
+ from glob import glob
if "install" in sys.argv:
targetdir = pyscard_dist.command_obj['install'].install_purelib
package_data=kw['package_data']
@@ -227,6 +227,6 @@
files.extend( [fn for fn in filelist if fn not in files] )
for file in files:
newdir = os.path.dirname( file )
- dir_util.mkpath( os.path.join( targetdir, newdir ) )
+ dir_util.mkpath( os.path.join( targetdir, newdir ) )
file_util.copy_file( file, os.path.join( targetdir, file ) )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-11-22 14:38:56
|
Revision: 340
http://pyscard.svn.sourceforge.net/pyscard/?rev=340&view=rev
Author: ludov
Date: 2009-11-22 14:38:47 +0000 (Sun, 22 Nov 2009)
Log Message:
-----------
pep8: W391 blank line at end of file
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-11-22 14:38:20 UTC (rev 339)
+++ trunk/pyscard/src/setup.py 2009-11-22 14:38:47 UTC (rev 340)
@@ -229,4 +229,3 @@
newdir = os.path.dirname( file )
dir_util.mkpath( os.path.join( targetdir, newdir ) )
file_util.copy_file( file, os.path.join( targetdir, file ) )
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-11-22 14:40:18
|
Revision: 341
http://pyscard.svn.sourceforge.net/pyscard/?rev=341&view=rev
Author: ludov
Date: 2009-11-22 14:40:07 +0000 (Sun, 22 Nov 2009)
Log Message:
-----------
pep8: W602 deprecated form of raising exception
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-11-22 14:38:47 UTC (rev 340)
+++ trunk/pyscard/src/setup.py 2009-11-22 14:40:07 UTC (rev 341)
@@ -32,7 +32,7 @@
import sys
if sys.version[0:1] == '1':
- raise RuntimeError, ("pyscard requires Python 2.x to build.")
+ raise RuntimeError("pyscard requires Python 2.x to build.")
if 'win32'==get_platform():
platform__cc_defines=[('WIN32', '100')]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-11-22 14:43:18
|
Revision: 342
http://pyscard.svn.sourceforge.net/pyscard/?rev=342&view=rev
Author: ludov
Date: 2009-11-22 14:43:07 +0000 (Sun, 22 Nov 2009)
Log Message:
-----------
pep8: E225 missing whitespace around operator
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-11-22 14:40:07 UTC (rev 341)
+++ trunk/pyscard/src/setup.py 2009-11-22 14:43:07 UTC (rev 342)
@@ -34,62 +34,62 @@
if sys.version[0:1] == '1':
raise RuntimeError("pyscard requires Python 2.x to build.")
-if 'win32'==get_platform():
- platform__cc_defines=[('WIN32', '100')]
- platform_swig_opts=['-DWIN32']
- platform_sources=['smartcard/scard/scard.rc']
- platform_libraries=['winscard']
- platform_include_dirs=[]
- platform_extra_compile_args=[]
- platform_extra_link_args=[]
+if 'win32' == get_platform():
+ platform__cc_defines = [('WIN32', '100')]
+ platform_swig_opts = ['-DWIN32']
+ platform_sources = ['smartcard/scard/scard.rc']
+ platform_libraries = ['winscard']
+ platform_include_dirs = []
+ platform_extra_compile_args = []
+ platform_extra_link_args = []
#
# Mac OS X Tiger has python 2.3 preinstalled
# get_platform() returns a string similar to 'darwin-8.11.1-i386' with python 2.3
# if python 2.5 is installed, get_platform() returns a string similar to 'macosx-10.3-fat'
elif 'darwin' in get_platform() or 'macosx-10.3' in get_platform() or 'macosx-10.4' in get_platform():
- platform__cc_defines=[ ('PCSCLITE', '1'), ('__APPLE__','1'), ('__TIGER__','1')]
- platform_swig_opts=[ '-DPCSCLITE', '-D__APPLE__', '-D__TIGER__' ]
- platform_sources=[]
- platform_libraries=[]
- platform_include_dirs=[]
- platform_extra_compile_args=['-v','-framework', 'PCSC', '-arch', 'i386', '-arch', 'ppc', '-ggdb', '-O0']
- platform_extra_link_args=['-arch', 'i386', '-arch', 'ppc','-ggdb']
+ platform__cc_defines = [ ('PCSCLITE', '1'), ('__APPLE__','1'), ('__TIGER__','1')]
+ platform_swig_opts = [ '-DPCSCLITE', '-D__APPLE__', '-D__TIGER__' ]
+ platform_sources = []
+ platform_libraries = []
+ platform_include_dirs = []
+ platform_extra_compile_args = ['-v','-framework', 'PCSC', '-arch', 'i386', '-arch', 'ppc', '-ggdb', '-O0']
+ platform_extra_link_args = ['-arch', 'i386', '-arch', 'ppc','-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')]
- platform_swig_opts=[ '-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__' ]
- platform_sources=[]
- platform_libraries=[]
- platform_include_dirs=[]
- platform_extra_compile_args=['-v','-framework', 'PCSC', '-arch',
+ platform__cc_defines = [ ('PCSCLITE', '1'), ('__APPLE__','1'), ('__LEOPARD__','1')]
+ platform_swig_opts = [ '-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__' ]
+ platform_sources = []
+ platform_libraries = []
+ platform_include_dirs = []
+ platform_extra_compile_args = ['-v','-framework', 'PCSC', '-arch',
'i386', '-arch', 'x86_64', '-ggdb', '-O0']
- platform_extra_link_args=['-arch', 'i386', '-arch', 'x86_64','-ggdb']
+ platform_extra_link_args = ['-arch', 'i386', '-arch', 'x86_64','-ggdb']
#
# Mac OS X Leopard has python 2.5 preinstalled
# get_platform() returns a string similar to 'macosx-10.5-i386'
#
elif 'macosx-10.' in get_platform():
- platform__cc_defines=[ ('PCSCLITE', '1'), ('__APPLE__','1'), ('__LEOPARD__','1')]
- platform_swig_opts=[ '-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__' ]
- platform_sources=[]
- platform_libraries=[]
- platform_include_dirs=[]
- platform_extra_compile_args=['-v','-framework', 'PCSC', '-arch', 'i386', '-arch', 'ppc', '-ggdb', '-O0']
- platform_extra_link_args=['-arch', 'i386', '-arch', 'ppc','-ggdb']
+ platform__cc_defines = [ ('PCSCLITE', '1'), ('__APPLE__','1'), ('__LEOPARD__','1')]
+ platform_swig_opts = [ '-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__' ]
+ platform_sources = []
+ platform_libraries = []
+ platform_include_dirs = []
+ platform_extra_compile_args = ['-v','-framework', 'PCSC', '-arch', 'i386', '-arch', 'ppc', '-ggdb', '-O0']
+ platform_extra_link_args = ['-arch', 'i386', '-arch', 'ppc','-ggdb']
else:
- platform__cc_defines=[('PCSCLITE', '1')]
- platform_swig_opts=['-DPCSCLITE']
- platform_sources=[]
- platform_libraries=["python%d.%d" % sys.version_info[:2]]
- platform_include_dirs=['/usr/include/PCSC']
- platform_extra_compile_args=[]#['-ggdb', '-O0']
- platform_extra_link_args=[]#['-ggdb']
+ platform__cc_defines = [('PCSCLITE', '1')]
+ platform_swig_opts = ['-DPCSCLITE']
+ platform_sources = []
+ platform_libraries = ["python%d.%d" % sys.version_info[:2]]
+ platform_include_dirs = ['/usr/include/PCSC']
+ platform_extra_compile_args = [] #['-ggdb', '-O0']
+ platform_extra_link_args = [] #['-ggdb']
class _pyscardBuildExt(build_ext):
@@ -182,14 +182,14 @@
# the _scard.pyd extension to build
'ext_modules':[Extension("smartcard.scard._scard",
define_macros=platform__cc_defines,
- include_dirs=['smartcard/scard/']+platform_include_dirs,
- sources=["smartcard/scard/helpers.c",
+ include_dirs = ['smartcard/scard/'] + platform_include_dirs,
+ sources = ["smartcard/scard/helpers.c",
"smartcard/scard/winscarddll.c",
- "smartcard/scard/scard.i"]+platform_sources,
- libraries=platform_libraries,
- extra_compile_args=platform_extra_compile_args,
- extra_link_args=platform_extra_link_args,
- swig_opts=['-outdir','smartcard/scard']+platform_swig_opts)],
+ "smartcard/scard/scard.i"] + platform_sources,
+ libraries = platform_libraries,
+ extra_compile_args = platform_extra_compile_args,
+ extra_link_args = platform_extra_link_args,
+ swig_opts = ['-outdir','smartcard/scard'] + platform_swig_opts)],
'cmdclass':{'build_ext': _pyscardBuildExt},
}
@@ -209,7 +209,7 @@
'%s-%s.zip' % (kw['name'], kw['version']) )
-pyscard_dist=core.setup(**kw)
+pyscard_dist = core.setup(**kw)
# Python 2.3 distutils does not support package_data
@@ -219,8 +219,8 @@
from glob import glob
if "install" in sys.argv:
targetdir = pyscard_dist.command_obj['install'].install_purelib
- package_data=kw['package_data']
- files=[]
+ package_data = kw['package_data']
+ files = []
for directory in package_data:
for pattern in package_data[directory]:
filelist = glob( os.path.join( directory, convert_path(pattern) ) )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-11-22 14:45:10
|
Revision: 343
http://pyscard.svn.sourceforge.net/pyscard/?rev=343&view=rev
Author: ludov
Date: 2009-11-22 14:45:01 +0000 (Sun, 22 Nov 2009)
Log Message:
-----------
pep8: no spaces around keyword / parameter equals
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-11-22 14:43:07 UTC (rev 342)
+++ trunk/pyscard/src/setup.py 2009-11-22 14:45:01 UTC (rev 343)
@@ -182,14 +182,14 @@
# the _scard.pyd extension to build
'ext_modules':[Extension("smartcard.scard._scard",
define_macros=platform__cc_defines,
- include_dirs = ['smartcard/scard/'] + platform_include_dirs,
- sources = ["smartcard/scard/helpers.c",
+ include_dirs=['smartcard/scard/'] + platform_include_dirs,
+ sources=["smartcard/scard/helpers.c",
"smartcard/scard/winscarddll.c",
"smartcard/scard/scard.i"] + platform_sources,
- libraries = platform_libraries,
- extra_compile_args = platform_extra_compile_args,
- extra_link_args = platform_extra_link_args,
- swig_opts = ['-outdir','smartcard/scard'] + platform_swig_opts)],
+ libraries=platform_libraries,
+ extra_compile_args=platform_extra_compile_args,
+ extra_link_args=platform_extra_link_args,
+ swig_opts=['-outdir','smartcard/scard'] + platform_swig_opts)],
'cmdclass':{'build_ext': _pyscardBuildExt},
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-11-22 14:48:03
|
Revision: 344
http://pyscard.svn.sourceforge.net/pyscard/?rev=344&view=rev
Author: ludov
Date: 2009-11-22 14:47:53 +0000 (Sun, 22 Nov 2009)
Log Message:
-----------
pep8: E231 missing whitespace after ','
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-11-22 14:45:01 UTC (rev 343)
+++ trunk/pyscard/src/setup.py 2009-11-22 14:47:53 UTC (rev 344)
@@ -48,40 +48,40 @@
# get_platform() returns a string similar to 'darwin-8.11.1-i386' with python 2.3
# if python 2.5 is installed, get_platform() returns a string similar to 'macosx-10.3-fat'
elif 'darwin' in get_platform() or 'macosx-10.3' in get_platform() or 'macosx-10.4' in get_platform():
- platform__cc_defines = [ ('PCSCLITE', '1'), ('__APPLE__','1'), ('__TIGER__','1')]
+ platform__cc_defines = [ ('PCSCLITE', '1'), ('__APPLE__', '1'), ('__TIGER__', '1')]
platform_swig_opts = [ '-DPCSCLITE', '-D__APPLE__', '-D__TIGER__' ]
platform_sources = []
platform_libraries = []
platform_include_dirs = []
- platform_extra_compile_args = ['-v','-framework', 'PCSC', '-arch', 'i386', '-arch', 'ppc', '-ggdb', '-O0']
- platform_extra_link_args = ['-arch', 'i386', '-arch', 'ppc','-ggdb']
+ platform_extra_compile_args = ['-v', '-framework', 'PCSC', '-arch', 'i386', '-arch', 'ppc', '-ggdb', '-O0']
+ platform_extra_link_args = ['-arch', 'i386', '-arch', 'ppc', '-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')]
+ platform__cc_defines = [ ('PCSCLITE', '1'), ('__APPLE__', '1'), ('__LEOPARD__', '1')]
platform_swig_opts = [ '-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__' ]
platform_sources = []
platform_libraries = []
platform_include_dirs = []
- platform_extra_compile_args = ['-v','-framework', 'PCSC', '-arch',
+ platform_extra_compile_args = ['-v', '-framework', 'PCSC', '-arch',
'i386', '-arch', 'x86_64', '-ggdb', '-O0']
- platform_extra_link_args = ['-arch', 'i386', '-arch', 'x86_64','-ggdb']
+ platform_extra_link_args = ['-arch', 'i386', '-arch', 'x86_64', '-ggdb']
#
# Mac OS X Leopard has python 2.5 preinstalled
# get_platform() returns a string similar to 'macosx-10.5-i386'
#
elif 'macosx-10.' in get_platform():
- platform__cc_defines = [ ('PCSCLITE', '1'), ('__APPLE__','1'), ('__LEOPARD__','1')]
+ platform__cc_defines = [ ('PCSCLITE', '1'), ('__APPLE__', '1'), ('__LEOPARD__', '1')]
platform_swig_opts = [ '-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__' ]
platform_sources = []
platform_libraries = []
platform_include_dirs = []
- platform_extra_compile_args = ['-v','-framework', 'PCSC', '-arch', 'i386', '-arch', 'ppc', '-ggdb', '-O0']
- platform_extra_link_args = ['-arch', 'i386', '-arch', 'ppc','-ggdb']
+ platform_extra_compile_args = ['-v', '-framework', 'PCSC', '-arch', 'i386', '-arch', 'ppc', '-ggdb', '-O0']
+ platform_extra_link_args = ['-arch', 'i386', '-arch', 'ppc', '-ggdb']
else:
platform__cc_defines = [('PCSCLITE', '1')]
platform_swig_opts = ['-DPCSCLITE']
@@ -94,7 +94,7 @@
class _pyscardBuildExt(build_ext):
'''Specialization of build_ext to enable swig_opts for python 2.3 distutils'''
-if sys.version_info < (2,4):
+if sys.version_info < (2, 4):
# This copy of swig_sources is from Python 2.3.
# This is to add support of swig_opts for Python 2.3 distutils
@@ -214,7 +214,7 @@
# Python 2.3 distutils does not support package_data
# copy manually package_data
-if sys.version_info < (2,4):
+if sys.version_info < (2, 4):
from distutils.util import convert_path
from glob import glob
if "install" in sys.argv:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-11-22 14:50:30
|
Revision: 345
http://pyscard.svn.sourceforge.net/pyscard/?rev=345&view=rev
Author: ludov
Date: 2009-11-22 14:50:23 +0000 (Sun, 22 Nov 2009)
Log Message:
-----------
pep8: E231 missing whitespace after ':'
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-11-22 14:47:53 UTC (rev 344)
+++ trunk/pyscard/src/setup.py 2009-11-22 14:50:23 UTC (rev 345)
@@ -150,15 +150,15 @@
build_ext.swig_sources = swig_sources
-kw = {'name':"pyscard",
- 'version':"1.6.8",
- 'description':"Smartcard module for Python.",
- 'author':"Jean-Daniel Aussel",
- 'author_email':"aus...@ge...",
- 'url':"http://www.gemalto.com",
- 'long_description':'Smartcard package for Python',
- 'license':'GNU LESSER GENERAL PUBLIC LICENSE',
- 'platforms':['linux','win32'],
+kw = {'name': "pyscard",
+ 'version': "1.6.8",
+ 'description': "Smartcard module for Python.",
+ 'author': "Jean-Daniel Aussel",
+ 'author_email': "aus...@ge...",
+ 'url': "http://www.gemalto.com",
+ 'long_description': 'Smartcard package for Python',
+ 'license': 'GNU LESSER GENERAL PUBLIC LICENSE',
+ 'platforms': ['linux','win32'],
'packages' : [ "smartcard",
"smartcard/pcsc",
"smartcard/reader",
@@ -167,7 +167,7 @@
"smartcard/util",
"smartcard/wx",
],
- 'package_dir' : { "":"." },
+ 'package_dir' : { "": "." },
'package_data' : {
"smartcard" : [
"ACKS",
@@ -180,7 +180,7 @@
} ,
# the _scard.pyd extension to build
- 'ext_modules':[Extension("smartcard.scard._scard",
+ 'ext_modules': [Extension("smartcard.scard._scard",
define_macros=platform__cc_defines,
include_dirs=['smartcard/scard/'] + platform_include_dirs,
sources=["smartcard/scard/helpers.c",
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-11-22 14:51:45
|
Revision: 346
http://pyscard.svn.sourceforge.net/pyscard/?rev=346&view=rev
Author: ludov
Date: 2009-11-22 14:51:14 +0000 (Sun, 22 Nov 2009)
Log Message:
-----------
pep8: E231 missing whitespace after ','
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-11-22 14:50:23 UTC (rev 345)
+++ trunk/pyscard/src/setup.py 2009-11-22 14:51:14 UTC (rev 346)
@@ -158,7 +158,7 @@
'url': "http://www.gemalto.com",
'long_description': 'Smartcard package for Python',
'license': 'GNU LESSER GENERAL PUBLIC LICENSE',
- 'platforms': ['linux','win32'],
+ 'platforms': ['linux', 'win32'],
'packages' : [ "smartcard",
"smartcard/pcsc",
"smartcard/reader",
@@ -189,7 +189,7 @@
libraries=platform_libraries,
extra_compile_args=platform_extra_compile_args,
extra_link_args=platform_extra_link_args,
- swig_opts=['-outdir','smartcard/scard'] + platform_swig_opts)],
+ swig_opts=['-outdir', 'smartcard/scard'] + platform_swig_opts)],
'cmdclass':{'build_ext': _pyscardBuildExt},
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2009-11-22 14:51:50
|
Revision: 347
http://pyscard.svn.sourceforge.net/pyscard/?rev=347&view=rev
Author: ludov
Date: 2009-11-22 14:51:41 +0000 (Sun, 22 Nov 2009)
Log Message:
-----------
pep8: E231 missing whitespace after ':'
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2009-11-22 14:51:14 UTC (rev 346)
+++ trunk/pyscard/src/setup.py 2009-11-22 14:51:41 UTC (rev 347)
@@ -190,7 +190,7 @@
extra_compile_args=platform_extra_compile_args,
extra_link_args=platform_extra_link_args,
swig_opts=['-outdir', 'smartcard/scard'] + platform_swig_opts)],
- 'cmdclass':{'build_ext': _pyscardBuildExt},
+ 'cmdclass': {'build_ext': _pyscardBuildExt},
}
# If we're running >Python 2.3, add extra information
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2010-03-10 12:34:38
|
Revision: 378
http://pyscard.svn.sourceforge.net/pyscard/?rev=378&view=rev
Author: ludov
Date: 2010-03-10 12:34:32 +0000 (Wed, 10 Mar 2010)
Log Message:
-----------
Reformat to make pep8 happy
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2010-03-10 12:33:32 UTC (rev 377)
+++ trunk/pyscard/src/setup.py 2010-03-10 12:34:32 UTC (rev 378)
@@ -45,11 +45,13 @@
#
# Mac OS X Tiger has python 2.3 preinstalled
-# get_platform() returns a string similar to 'darwin-8.11.1-i386' with python 2.3
-# if python 2.5 is installed, get_platform() returns a string similar to 'macosx-10.3-fat'
+# get_platform() returns a string similar to 'darwin-8.11.1-i386' with
+# python 2.3
+# if python 2.5 is installed, get_platform() returns a string similar to
+# 'macosx-10.3-fat'
elif 'darwin' in get_platform() or 'macosx-10.3' in get_platform() or 'macosx-10.4' in get_platform():
- platform__cc_defines = [ ('PCSCLITE', '1'), ('__APPLE__', '1'), ('__TIGER__', '1')]
- platform_swig_opts = [ '-DPCSCLITE', '-D__APPLE__', '-D__TIGER__' ]
+ platform__cc_defines = [('PCSCLITE', '1'), ('__APPLE__', '1'), ('__TIGER__', '1')]
+ platform_swig_opts = ['-DPCSCLITE', '-D__APPLE__', '-D__TIGER__']
platform_sources = []
platform_libraries = []
platform_include_dirs = []
@@ -61,8 +63,8 @@
# 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')]
- platform_swig_opts = [ '-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__' ]
+ platform__cc_defines = [('PCSCLITE', '1'), ('__APPLE__', '1'), ('__LEOPARD__', '1')]
+ platform_swig_opts = ['-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__']
platform_sources = []
platform_libraries = []
platform_include_dirs = []
@@ -75,8 +77,8 @@
# get_platform() returns a string similar to 'macosx-10.5-i386'
#
elif 'macosx-10.' in get_platform():
- platform__cc_defines = [ ('PCSCLITE', '1'), ('__APPLE__', '1'), ('__LEOPARD__', '1')]
- platform_swig_opts = [ '-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__' ]
+ platform__cc_defines = [('PCSCLITE', '1'), ('__APPLE__', '1'), ('__LEOPARD__', '1')]
+ platform_swig_opts = ['-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__']
platform_sources = []
platform_libraries = []
platform_include_dirs = []
@@ -100,7 +102,7 @@
# This is to add support of swig_opts for Python 2.3 distutils
# (in particular for MacOS X darwin that comes with Python 2.3)
- def swig_sources (self, sources):
+ def swig_sources(self, sources):
"""Walk the list of source files in 'sources', looking for SWIG
interface (.i) files. Run SWIG on all that are found, and
@@ -159,25 +161,25 @@
'long_description': 'Smartcard package for Python',
'license': 'GNU LESSER GENERAL PUBLIC LICENSE',
'platforms': ['linux', 'win32'],
- 'packages' : [ "smartcard",
- "smartcard/pcsc",
- "smartcard/reader",
- "smartcard/scard",
- "smartcard/sw",
- "smartcard/util",
- "smartcard/wx",
- ],
- 'package_dir' : { "": "." },
- 'package_data' : {
- "smartcard" : [
+ 'packages': ["smartcard",
+ "smartcard/pcsc",
+ "smartcard/reader",
+ "smartcard/scard",
+ "smartcard/sw",
+ "smartcard/util",
+ "smartcard/wx",
+ ],
+ 'package_dir': {"": "."},
+ 'package_data': {
+ "smartcard": [
"ACKS",
"ChangeLog",
"LICENSE",
"README",
"TODO",
],
- "smartcard/wx" : ["resources/*.ico"],
- } ,
+ "smartcard/wx": ["resources/*.ico"],
+ },
# the _scard.pyd extension to build
'ext_modules': [Extension("smartcard.scard._scard",
@@ -206,7 +208,7 @@
]
if 'download_url' in core.setup_keywords:
kw['download_url'] = ('http://sourceforge.net/projects/pyscard/'
- '%s-%s.zip' % (kw['name'], kw['version']) )
+ '%s-%s.zip' % (kw['name'], kw['version']))
pyscard_dist = core.setup(**kw)
@@ -223,9 +225,9 @@
files = []
for directory in package_data:
for pattern in package_data[directory]:
- filelist = glob( os.path.join( directory, convert_path(pattern) ) )
- files.extend( [fn for fn in filelist if fn not in files] )
+ filelist = glob(os.path.join(directory, convert_path(pattern)))
+ files.extend([fn for fn in filelist if fn not in files])
for file in files:
- newdir = os.path.dirname( file )
- dir_util.mkpath( os.path.join( targetdir, newdir ) )
- file_util.copy_file( file, os.path.join( targetdir, file ) )
+ newdir = os.path.dirname(file)
+ dir_util.mkpath(os.path.join(targetdir, newdir))
+ file_util.copy_file(file, os.path.join(targetdir, file))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2010-04-18 08:26:07
|
Revision: 390
http://pyscard.svn.sourceforge.net/pyscard/?rev=390&view=rev
Author: ludov
Date: 2010-04-18 08:26:01 +0000 (Sun, 18 Apr 2010)
Log Message:
-----------
For Snow Leopard, do not pass -framework PCSC to the compiler since that
generates warnings:
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because linking not done
i686-apple-darwin10-gcc-4.2.1: PCSC: linker input file unused because linking not done
We do not need to link with -framework PCSC since we do a dynamic
loading using dlopen()
Thanks to Martin Paljak for the patch
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2010-04-18 08:10:13 UTC (rev 389)
+++ trunk/pyscard/src/setup.py 2010-04-18 08:26:01 UTC (rev 390)
@@ -68,8 +68,7 @@
platform_sources = []
platform_libraries = []
platform_include_dirs = []
- platform_extra_compile_args = ['-v', '-framework', 'PCSC', '-arch',
- 'i386', '-arch', 'x86_64', '-ggdb', '-O0']
+ platform_extra_compile_args = ['-v', '-arch', 'i386', '-arch', 'x86_64', '-ggdb', '-O0']
platform_extra_link_args = ['-arch', 'i386', '-arch', 'x86_64', '-ggdb']
#
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2010-04-18 08:28:50
|
Revision: 391
http://pyscard.svn.sourceforge.net/pyscard/?rev=391&view=rev
Author: ludov
Date: 2010-04-18 08:28:44 +0000 (Sun, 18 Apr 2010)
Log Message:
-----------
Snow Leopard: do not force no optimisation with -O0 but let the user
decide
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2010-04-18 08:26:01 UTC (rev 390)
+++ trunk/pyscard/src/setup.py 2010-04-18 08:28:44 UTC (rev 391)
@@ -68,7 +68,7 @@
platform_sources = []
platform_libraries = []
platform_include_dirs = []
- platform_extra_compile_args = ['-v', '-arch', 'i386', '-arch', 'x86_64', '-ggdb', '-O0']
+ platform_extra_compile_args = ['-v', '-arch', 'i386', '-arch', 'x86_64', '-ggdb']
platform_extra_link_args = ['-arch', 'i386', '-arch', 'x86_64', '-ggdb']
#
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jda...@us...> - 2010-12-23 14:31:07
|
Revision: 520
http://pyscard.svn.sourceforge.net/pyscard/?rev=520&view=rev
Author: jdaussel
Date: 2010-12-23 14:31:01 +0000 (Thu, 23 Dec 2010)
Log Message:
-----------
Added support for windows 64bit
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2010-11-30 08:11:50 UTC (rev 519)
+++ trunk/pyscard/src/setup.py 2010-12-23 14:31:01 UTC (rev 520)
@@ -43,6 +43,15 @@
platform_extra_compile_args = []
platform_extra_link_args = []
+elif 'win-amd64' == get_platform():
+ platform__cc_defines = [('WIN32', '100')]
+ platform_swig_opts = ['-DWIN32']
+ platform_sources = ['smartcard/scard/scard.rc']
+ platform_libraries = ['winscard']
+ platform_include_dirs = []
+ platform_extra_compile_args = []
+ platform_extra_link_args = []
+
#
# Mac OS X Tiger has python 2.3 preinstalled
# get_platform() returns a string similar to 'darwin-8.11.1-i386' with
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2011-07-01 13:10:51
|
Revision: 530
http://pyscard.svn.sourceforge.net/pyscard/?rev=530&view=rev
Author: ludov
Date: 2011-07-01 13:10:44 +0000 (Fri, 01 Jul 2011)
Log Message:
-----------
PEP8: E262 inline comment should start with '# '
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2011-04-26 16:51:13 UTC (rev 529)
+++ trunk/pyscard/src/setup.py 2011-07-01 13:10:44 UTC (rev 530)
@@ -98,8 +98,8 @@
platform_sources = []
platform_libraries = ["python%d.%d" % sys.version_info[:2]]
platform_include_dirs = ['/usr/include/PCSC']
- platform_extra_compile_args = [] #['-ggdb', '-O0']
- platform_extra_link_args = [] #['-ggdb']
+ platform_extra_compile_args = [] # ['-ggdb', '-O0']
+ platform_extra_link_args = [] # ['-ggdb']
class _pyscardBuildExt(build_ext):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2011-09-03 16:44:43
|
Revision: 540
http://pyscard.svn.sourceforge.net/pyscard/?rev=540&view=rev
Author: ludov
Date: 2011-09-03 16:44:37 +0000 (Sat, 03 Sep 2011)
Log Message:
-----------
Add support of Mac OS X Lion (10.7)
The PC/SC layer in Lion is the same as in Snow Leopard with some bugs
removed. See
http://ludovicrousseau.blogspot.com/2011/08/mac-os-x-lion-and-smart-cards-status.html
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2011-08-09 08:10:27 UTC (rev 539)
+++ trunk/pyscard/src/setup.py 2011-09-03 16:44:37 UTC (rev 540)
@@ -71,7 +71,10 @@
# Mac OS X Snow Leopard, python 2.6
# PowerPC is no more supported, x86_64 is new
#
-elif 'macosx-10.6' in get_platform():
+# 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():
platform__cc_defines = [('PCSCLITE', '1'), ('__APPLE__', '1'), ('__LEOPARD__', '1')]
platform_swig_opts = ['-DPCSCLITE', '-D__APPLE__', '-D__LEOPARD__']
platform_sources = []
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2012-10-10 13:26:38
|
Revision: 610
http://pyscard.svn.sourceforge.net/pyscard/?rev=610&view=rev
Author: ludov
Date: 2012-10-10 13:26:28 +0000 (Wed, 10 Oct 2012)
Log Message:
-----------
Remove dependency on libpython for Linux
pyscard is linked against libpython. This is considered a bad habit in
Debian as it pulling extra dependencies when installing.
The python interpreter itself is already statically linked against
libpython, linking the extension to it is creating unneeded dependencies
and might increase the memory usage.
This change fixes Debian bug #689923
http://bugs.debian.org/689923
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2012-10-06 16:44:20 UTC (rev 609)
+++ trunk/pyscard/src/setup.py 2012-10-10 13:26:28 UTC (rev 610)
@@ -127,7 +127,7 @@
platform__cc_defines = [('PCSCLITE', '1')]
platform_swig_opts = ['-DPCSCLITE']
platform_sources = []
- platform_libraries = ["python%d.%d" % sys.version_info[:2]]
+ platform_libraries = []
platform_include_dirs = ['/usr/include/PCSC']
platform_extra_compile_args = [] # ['-ggdb', '-O0']
platform_extra_link_args = [] # ['-ggdb']
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2012-10-28 11:16:13
|
Revision: 611
http://pyscard.svn.sourceforge.net/pyscard/?rev=611&view=rev
Author: ludov
Date: 2012-10-28 11:16:01 +0000 (Sun, 28 Oct 2012)
Log Message:
-----------
Add support of Mountain Lion (Mac OS X 10.8)
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2012-10-10 13:26:28 UTC (rev 610)
+++ trunk/pyscard/src/setup.py 2012-10-28 11:16:01 UTC (rev 611)
@@ -74,12 +74,12 @@
platform_extra_link_args = ['-arch', 'i386', '-arch', 'ppc', '-ggdb']
#
-# Mac OS X Lion, python 2.7
+# Mac OS X Lion (and above), python 2.7
# PowerPC is no more supported, x86_64 is new
#
# x86_64 and i386
#
-elif 'macosx-10.7' in get_platform():
+elif 'macosx-10.' in get_platform():
platform__cc_defines = [('PCSCLITE', '1'),
('__APPLE__', '1'),
('__LION__', '1')]
@@ -111,7 +111,7 @@
# Mac OS X Leopard has python 2.5 preinstalled
# get_platform() returns a string similar to 'macosx-10.5-i386'
#
-elif 'macosx-10.' in get_platform():
+elif 'macosx-10.5' in get_platform():
platform__cc_defines = [('PCSCLITE', '1'),
('__APPLE__', '1'),
('__LEOPARD__', '1')]
@@ -123,6 +123,9 @@
'-arch', 'i386',
'-arch', 'ppc', '-ggdb', '-O0']
platform_extra_link_args = ['-arch', 'i386', '-arch', 'ppc', '-ggdb']
+#
+# Other (GNU/Linux, etc.)
+#
else:
platform__cc_defines = [('PCSCLITE', '1')]
platform_swig_opts = ['-DPCSCLITE']
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lu...@us...> - 2015-01-05 09:32:52
|
Revision: 659
http://sourceforge.net/p/pyscard/code/659
Author: ludov
Date: 2015-01-05 09:32:49 +0000 (Mon, 05 Jan 2015)
Log Message:
-----------
Add support of cygwin as a build plateform
Thanks to Olivier FAURAX for the bug report and testing.
Closes bug #19 Unable to compile under cygwin
http://sourceforge.net/p/pyscard/bugs/19/
Modified Paths:
--------------
trunk/pyscard/src/setup.py
Modified: trunk/pyscard/src/setup.py
===================================================================
--- trunk/pyscard/src/setup.py 2014-12-13 16:20:55 UTC (rev 658)
+++ trunk/pyscard/src/setup.py 2015-01-05 09:32:49 UTC (rev 659)
@@ -51,6 +51,15 @@
platform_include_dirs = []
platform_extra_compile_args = []
platform_extra_link_args = []
+
+elif 'cygwin-' in get_platform():
+ platform__cc_defines = [('WIN32', '100')]
+ platform_swig_opts = ['-DWIN32']
+ platform_sources = []
+ platform_libraries = ['winscard']
+ platform_include_dirs = []
+ platform_extra_compile_args = []
+ platform_extra_link_args = []
#
# Mac OS X Tiger has python 2.3 preinstalled
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|