Thread: [KoCo-CVS] [Commit] KoreanCodecs setup.py
Brought to you by:
perky
From: Chang <pe...@us...> - 2002-04-17 10:43:24
|
perky 02/04/17 03:43:21 Modified: . setup.py Log: (Catch up JapaneseCodecs 1.4.5's style) - Change pth filename same to package name - Add --without-aliases option onto setup.py - Move alias codes from __init__.py to aliases.py Revision Changes Path 1.11 +17 -8 KoreanCodecs/setup.py Index: setup.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/setup.py,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- setup.py 8 Apr 2002 12:45:25 -0000 1.10 +++ setup.py 17 Apr 2002 10:43:21 -0000 1.11 @@ -1,14 +1,23 @@ #!/usr/bin/env python -# Hye-Shik Chang <16 Feb 2002> +# $Id: setup.py,v 1.11 2002/04/17 10:43:21 perky Exp $ +import sys from distutils.core import setup, Extension +from distutils.command.install import install -# XXX: I think this is not proper way. How can I make clean this? -from distutils.command.install import INSTALL_SCHEMES -for paths in INSTALL_SCHEMES.values(): - paths['data'] = paths['purelib'] # change data directory to site dir for install .pth +with_aliases = 1 +if '--without-aliases' in sys.argv: + with_aliases = 0 + sys.argv.remove('--without-aliases') -dist = setup (name = "KoreanCodecs", +class Install(install): + def finalize_options (self): + install.finalize_options(self) + if with_aliases: + self.distribution.data_files = [ + (self.install_purelib, ["misc/korean.pth"])] + +setup (name = "KoreanCodecs", version = "2.0.3", description = "Korean Codecs for Python Unicode Support", long_description = "This package provides Unicode codecs that make " @@ -19,8 +28,8 @@ author_email = "pe...@fa...", license = "Python License", url = "http://sourceforge.net/projects/koco", - data_files = [('.', ['misc/KoreanCodecs.pth'])], - platforms = ['independant'], + cmdclass = {'install': Install}, + platforms = ['independent'], packages = ['korean', 'korean.mappings', 'korean.c', |
From: Chang <pe...@us...> - 2002-04-25 05:01:08
|
perky 02/04/24 22:01:06 Modified: . setup.py Log: - Remove hangul.dividestring method (it was just fancy feature..) - Add c.hangul to distutil build chain. Yeah~ Revision Changes Path 1.12 +4 -3 KoreanCodecs/setup.py Index: setup.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/setup.py,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- setup.py 17 Apr 2002 10:43:21 -0000 1.11 +++ setup.py 25 Apr 2002 05:01:06 -0000 1.12 @@ -1,5 +1,5 @@ #!/usr/bin/env python -# $Id: setup.py,v 1.11 2002/04/17 10:43:21 perky Exp $ +# $Id: setup.py,v 1.12 2002/04/25 05:01:06 perky Exp $ import sys from distutils.core import setup, Extension @@ -35,5 +35,6 @@ 'korean.c', 'korean.python'], ext_modules = [ - Extension("korean.c._koco", - ["src/_koco.c"])]) + Extension("korean.c._koco", ["src/_koco.c"]), + Extension("korean.c.hangul", ["src/hangul.c"]), + ]) |
From: Chang <pe...@us...> - 2002-04-26 10:33:20
|
perky 02/04/26 03:33:18 Modified: . setup.py Log: - Avoid strange phenomenon around installing *.pth into PLATLIB on win32 (why?) - take away aliases with '-' (it's working now!) Revision Changes Path 1.15 +2 -2 KoreanCodecs/setup.py Index: setup.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/setup.py,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- setup.py 26 Apr 2002 10:18:31 -0000 1.14 +++ setup.py 26 Apr 2002 10:33:18 -0000 1.15 @@ -1,5 +1,5 @@ #!/usr/bin/env python -# $Id: setup.py,v 1.14 2002/04/26 10:18:31 perky Exp $ +# $Id: setup.py,v 1.15 2002/04/26 10:33:18 perky Exp $ import sys from distutils.core import setup, Extension @@ -18,7 +18,7 @@ def finalize_options (self): org_install_lib = self.install_lib install.finalize_options(self) - self.install_lib = org_install_lib or self.install_purelib + self.install_libbase = self.install_lib = org_install_lib or self.install_purelib setup (name = "KoreanCodecs", version = "2.0.3a2", |
From: Chang <pe...@us...> - 2002-04-26 11:39:38
|
perky 02/04/26 04:39:35 Modified: . setup.py Log: - Add korean into sys.path if python version is lower than 2.1 - Delete useless comment :) Revision Changes Path 1.16 +5 -2 KoreanCodecs/setup.py Index: setup.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/setup.py,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- setup.py 26 Apr 2002 10:33:18 -0000 1.15 +++ setup.py 26 Apr 2002 11:39:35 -0000 1.16 @@ -1,5 +1,5 @@ #!/usr/bin/env python -# $Id: setup.py,v 1.15 2002/04/26 10:33:18 perky Exp $ +# $Id: setup.py,v 1.16 2002/04/26 11:39:35 perky Exp $ import sys from distutils.core import setup, Extension @@ -14,7 +14,10 @@ def initialize_options (self): install.initialize_options(self) if with_aliases: - self.extra_path = ("korean", "import korean.aliases") + if sys.hexversion >= '0x2010000': + self.extra_path = ("korean", "import korean.aliases") + else: + self.extra_path = "korean" def finalize_options (self): org_install_lib = self.install_lib install.finalize_options(self) |
From: Chang <pe...@us...> - 2002-04-27 03:27:44
|
perky 02/04/26 20:27:17 Modified: . setup.py Log: - Add trigger '--without-extension' not to install C extensions Revision Changes Path 1.17 +22 -13 KoreanCodecs/setup.py Index: setup.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/setup.py,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- setup.py 26 Apr 2002 11:39:35 -0000 1.16 +++ setup.py 27 Apr 2002 03:27:17 -0000 1.17 @@ -1,14 +1,21 @@ #!/usr/bin/env python -# $Id: setup.py,v 1.16 2002/04/26 11:39:35 perky Exp $ +# $Id: setup.py,v 1.17 2002/04/27 03:27:17 perky Exp $ import sys from distutils.core import setup, Extension from distutils.command.install import install -with_aliases = 1 -if '--without-aliases' in sys.argv: - with_aliases = 0 - sys.argv.remove('--without-aliases') +flavors = { + 'aliases': 1, + 'extension': 1, +} +for flname in flavors.keys(): + if '--without-'+flname in sys.argv: + sys.argv.remove('--without-'+flname) + flavors[flname] = 0 + if '--with-'+flname in sys.argv: + sys.argv.remove('--with-'+flname) + flavors[flname] = 1 class Install(install): def initialize_options (self): @@ -21,15 +28,17 @@ def finalize_options (self): org_install_lib = self.install_lib install.finalize_options(self) - self.install_libbase = self.install_lib = org_install_lib or self.install_purelib + self.install_libbase = self.install_lib = \ + org_install_lib or self.install_purelib setup (name = "KoreanCodecs", - version = "2.0.3a2", + version = "2.0.3a3", description = "Korean Codecs for Python Unicode Support", - long_description = "This package provides Unicode codecs that make " - "Python aware of Korean character encodings such as EUC-KR, CP949 " - "and ISO-2022-KR. By using this package, Korean characters can be treated " - "as a character string instead of a byte sequence.", + long_description = "This package provides Unicode codecs that " + "make Python aware of Korean character encodings such as " + "EUC-KR, CP949 and ISO-2022-KR. By using this package, " + "Korean characters can be treated as a character string " + "instead of a byte sequence.", author = "Hye-Shik Chang", author_email = "pe...@fa...", license = "Python License", @@ -39,7 +48,7 @@ 'korean.mappings', 'korean.c', 'korean.python'], - ext_modules = [ + ext_modules = flavors['extension'] and [ Extension("korean.c._koco", ["src/_koco.c"]), Extension("korean.c.hangul", ["src/hangul.c"]), - ]) + ] or []) |
From: Chang <pe...@us...> - 2002-04-27 04:48:42
|
perky 02/04/26 21:48:36 Modified: . setup.py Log: - Add twobytestream which will be used by CP949, EUC-KR and Johab as StreamReader, StreamWriter, StreamReaderWriter assistant Revision Changes Path 1.18 +2 -1 KoreanCodecs/setup.py Index: setup.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/setup.py,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- setup.py 27 Apr 2002 03:27:17 -0000 1.17 +++ setup.py 27 Apr 2002 04:48:36 -0000 1.18 @@ -1,5 +1,5 @@ #!/usr/bin/env python -# $Id: setup.py,v 1.17 2002/04/27 03:27:17 perky Exp $ +# $Id: setup.py,v 1.18 2002/04/27 04:48:36 perky Exp $ import sys from distutils.core import setup, Extension @@ -51,4 +51,5 @@ ext_modules = flavors['extension'] and [ Extension("korean.c._koco", ["src/_koco.c"]), Extension("korean.c.hangul", ["src/hangul.c"]), + Extension("korean.c.twobytestream", ["src/twobytestream.c"]), ] or []) |
From: Chang <pe...@us...> - 2002-04-28 19:38:55
|
perky 02/04/28 02:31:56 Modified: . setup.py Log: - Fix version detect error (with slide BETA1 tag) Revision Changes Path 1.21 +2 -2 KoreanCodecs/setup.py Index: setup.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/setup.py,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- setup.py 28 Apr 2002 08:08:04 -0000 1.20 +++ setup.py 28 Apr 2002 09:31:56 -0000 1.21 @@ -1,5 +1,5 @@ #!/usr/bin/env python -# $Id: setup.py,v 1.20 2002/04/28 08:08:04 perky Exp $ +# $Id: setup.py,v 1.21 2002/04/28 09:31:56 perky Exp $ import sys from distutils.core import setup, Extension @@ -21,7 +21,7 @@ def initialize_options (self): install.initialize_options(self) if flavors['aliases']: - if sys.hexversion >= '0x2010000': + if sys.hexversion >= 0x2010000: self.extra_path = ("korean", "import korean.aliases") else: self.extra_path = "korean" |
From: Chang <pe...@us...> - 2002-04-28 22:15:41
|
perky 02/04/27 23:54:11 Modified: . setup.py Log: - Fix unlimited access on boundary problem on readline_finalize - Let python.c.euc_kr uses _koco.StreamReader as stream reader Revision Changes Path 1.19 +2 -3 KoreanCodecs/setup.py Index: setup.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/setup.py,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- setup.py 27 Apr 2002 04:48:36 -0000 1.18 +++ setup.py 28 Apr 2002 06:54:11 -0000 1.19 @@ -1,5 +1,5 @@ #!/usr/bin/env python -# $Id: setup.py,v 1.18 2002/04/27 04:48:36 perky Exp $ +# $Id: setup.py,v 1.19 2002/04/28 06:54:11 perky Exp $ import sys from distutils.core import setup, Extension @@ -20,7 +20,7 @@ class Install(install): def initialize_options (self): install.initialize_options(self) - if with_aliases: + if flavors['aliases']: if sys.hexversion >= '0x2010000': self.extra_path = ("korean", "import korean.aliases") else: @@ -51,5 +51,4 @@ ext_modules = flavors['extension'] and [ Extension("korean.c._koco", ["src/_koco.c"]), Extension("korean.c.hangul", ["src/hangul.c"]), - Extension("korean.c.twobytestream", ["src/twobytestream.c"]), ] or []) |
From: Chang <pe...@us...> - 2002-04-29 02:10:46
|
perky 02/04/28 19:10:46 Modified: . setup.py Log: - Update to 2.0.3 Release Revision Changes Path 1.23 +2 -2 KoreanCodecs/setup.py Index: setup.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/setup.py,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- setup.py 28 Apr 2002 09:37:19 -0000 1.22 +++ setup.py 29 Apr 2002 02:10:46 -0000 1.23 @@ -1,5 +1,5 @@ #!/usr/bin/env python -# $Id: setup.py,v 1.22 2002/04/28 09:37:19 perky Exp $ +# $Id: setup.py,v 1.23 2002/04/29 02:10:46 perky Exp $ import sys from distutils.core import setup, Extension @@ -32,7 +32,7 @@ org_install_lib or self.install_purelib setup (name = "KoreanCodecs", - version = "2.0.3b2", + version = "2.0.3", description = "Korean Codecs for Python Unicode Support", long_description = "This package provides Unicode codecs that " "make Python aware of Korean character encodings such as " |
From: Chang <pe...@us...> - 2002-05-01 11:11:17
|
perky 02/05/01 04:11:16 Modified: . setup.py Log: - Bump package revision for next revision Revision Changes Path 1.25 +2 -2 KoreanCodecs/setup.py Index: setup.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/setup.py,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- setup.py 30 Apr 2002 01:05:15 -0000 1.24 +++ setup.py 1 May 2002 11:11:16 -0000 1.25 @@ -1,5 +1,5 @@ #!/usr/bin/env python -# $Id: setup.py,v 1.24 2002/04/30 01:05:15 perky Exp $ +# $Id: setup.py,v 1.25 2002/05/01 11:11:16 perky Exp $ import sys from distutils.core import setup, Extension @@ -32,7 +32,7 @@ org_install_lib or self.install_purelib setup (name = "KoreanCodecs", - version = "2.0.4", + version = "2.0.5a0", description = "Korean Codecs for Python Unicode Support", long_description = "This package provides Unicode codecs that " "make Python aware of Korean character encodings such as " |
From: Chang <pe...@us...> - 2002-07-13 06:57:36
|
perky 02/07/12 23:57:34 Modified: . setup.py Log: - Add LGPL Copyright Header Revision Changes Path 1.27 +21 -1 KoreanCodecs/setup.py Index: setup.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/setup.py,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- setup.py 13 Jul 2002 06:10:21 -0000 1.26 +++ setup.py 13 Jul 2002 06:57:34 -0000 1.27 @@ -1,5 +1,25 @@ #!/usr/bin/env python -# $Id: setup.py,v 1.26 2002/07/13 06:10:21 perky Exp $ +# +# This file is part of KoreanCodecs. +# +# Copyright(C) Hye-Shik Chang <pe...@Fr...>, 2002. +# +# KoreanCodecs is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published +# by the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# KoreanCodecs is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with Foobar; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# $Id: setup.py,v 1.27 2002/07/13 06:57:34 perky Exp $ +# import sys from distutils.core import setup, Extension |
From: Chang <pe...@us...> - 2002-07-19 00:01:54
|
perky 02/07/18 17:01:52 Modified: . setup.py Log: Ooh! We aren't Foobar project. :) Revision Changes Path 1.28 +2 -2 KoreanCodecs/setup.py Index: setup.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/setup.py,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- setup.py 13 Jul 2002 06:57:34 -0000 1.27 +++ setup.py 19 Jul 2002 00:01:52 -0000 1.28 @@ -15,10 +15,10 @@ # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License -# along with Foobar; if not, write to the Free Software +# along with KoreanCodecs; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# $Id: setup.py,v 1.27 2002/07/13 06:57:34 perky Exp $ +# $Id: setup.py,v 1.28 2002/07/19 00:01:52 perky Exp $ # import sys |
From: Hye-Shik C. <pe...@us...> - 2003-01-09 23:37:46
|
perky 03/01/09 15:37:46 Modified: . setup.py Log: Happy 2003! Revision Changes Path 1.31 +2 -2 KoreanCodecs/setup.py Index: setup.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/setup.py,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- setup.py 2 Jan 2003 10:36:32 -0000 1.30 +++ setup.py 9 Jan 2003 23:37:46 -0000 1.31 @@ -2,7 +2,7 @@ # # This file is part of KoreanCodecs. # -# Copyright(C) Hye-Shik Chang <pe...@Fr...>, 2002. +# Copyright(C) 2002-2003 Hye-Shik Chang <pe...@Fr...>. # # KoreanCodecs is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published @@ -18,7 +18,7 @@ # along with KoreanCodecs; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# $Id: setup.py,v 1.30 2003/01/02 10:36:32 perky Exp $ +# $Id: setup.py,v 1.31 2003/01/09 23:37:46 perky Exp $ # import sys |
From: Hye-Shik C. <pe...@us...> - 2003-01-13 09:09:56
|
perky 03/01/13 01:09:55 Modified: . setup.py Log: LGPL starts with version 2.1 not 2 Revision Changes Path 1.34 +2 -2 KoreanCodecs/setup.py Index: setup.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/setup.py,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- setup.py 12 Jan 2003 23:46:36 -0000 1.33 +++ setup.py 13 Jan 2003 09:09:54 -0000 1.34 @@ -6,7 +6,7 @@ # # KoreanCodecs is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published -# by the Free Software Foundation; either version 2 of the License, or +# by the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # # KoreanCodecs is distributed in the hope that it will be useful, @@ -18,7 +18,7 @@ # along with KoreanCodecs; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# $Id: setup.py,v 1.33 2003/01/12 23:46:36 perky Exp $ +# $Id: setup.py,v 1.34 2003/01/13 09:09:54 perky Exp $ # import sys |