[issue12242] distutils2 environment marker for current compiler
Roumen Petrov added the comment: What is result is i use GNU compiler by example with name arm-linux-androideabi-gcc ? -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue12242> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6164] [AIX] Patch to correct the AIX C/C++ linker argument used for 'runtime_library_dirs'
Roumen Petrov added the comment: hmm, and commit that close issue is ? -- ___ Python tracker <http://bugs.python.org/issue6164> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6164] [AIX] Patch to correct the AIX C/C++ linker argument used for 'runtime_library_dirs'
Roumen Petrov added the comment: see above "and restore of distutils in trunk abandon it." -- ___ Python tracker <http://bugs.python.org/issue6164> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6164] [AIX] Patch to correct the AIX C/C++ linker argument used for 'runtime_library_dirs'
Roumen Petrov added the comment: For protocol blibpath is not in any release - get download and check content . Did you apply a different fix ? -- ___ Python tracker <http://bugs.python.org/issue6164> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13157] Build Python outside the source directory
Roumen Petrov added the comment: Which is platform with broken VPATH support and/or make ? -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue13157> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13157] Build Python outside the source directory
Roumen Petrov added the comment: I wonder why you are not stopped by: configure: error: source directory already configured; run "make distclean" there first. (for sure you remove some files but not all) Applied patch is save but I cannot understand what actually is resolved. Note that someone already report as bug(?) attempt to build outside when first project is compiled in source. -- ___ Python tracker <http://bugs.python.org/issue13157> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k
Roumen Petrov added the comment: May be last report is not related to initial two years old . It seems to me it is introduced recently after some optimization related to creation of pyc files and this is not OpenSUSE related. -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue5875> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12619] Automatically regenerate platform-specific modules
Roumen Petrov added the comment: Related : #1565071 and #3990 . There is no reason to keep plat-xxx files if cannot be managed properly. -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue12619> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13150] Most of Python's startup time is sysconfig
Roumen Petrov added the comment: 10x for solution, 10x for commit . Good bye cross compilation! Any attempt to improve python build system to support cross-build, multilib build, build outside source tree with different options is useless. -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue13150> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13193] test_packaging and test_distutils failures
Roumen Petrov added the comment: Test test_install and test_command_install_data interference cache . Adding clear_cache as clean up routine will resolve reported issue with Spamlib. The patch is trivial. Also one of the test set clear_cache as cleanup. Most important is why packaging use global variables . To me good solution will not use globals , but this require authors to rewrite packaging itself. -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue13193> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] cross-compilation support for python build
Roumen Petrov added the comment: Greg, ensure correct configure script first as run commands autoheader and autoconf. Updates to configure script are not in patch . The patch include updates to source configure.in and autoconf command will update "configure". -- ___ Python tracker <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] cross-compilation support for python build
Roumen Petrov added the comment: Usually this is not a question for bug-tracking system . configure .. --host= will enter into cross-compilation mode. You could find more details into respective manual. Roumen -- ___ Python tracker <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] cross-compilation support for python build
Roumen Petrov added the comment: At least one is really would like to cross-compile. worber, the config site has to look like (sample for linux i?86, i.e. intel 32 bit, as host platform) = ac_cv_little_endian_double=yes ac_cv_broken_sem_getvalue=no ac_cv_computed_gotos=yes ac_cv_buggy_getaddrinfo=no ac_cv_working_tzset=yes #next line require fix typo in configure.in ac_cv_pthread=yes ac_cv_pthread_system_supported=yes ac_cv_tanh_preserves_zero_sign=yes ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=no = Also with following patch into configure.in === diff --git a/configure.in b/configure.in --- a/configure.in +++ b/configure.in @@ -1372,7 +1372,7 @@ # so we need to run a program to see whether it really made the # function available. AC_MSG_CHECKING(whether $CC accepts -pthread) -AC_CACHE_VAL(ac_cv_thread, +AC_CACHE_VAL(ac_cv_pthread, [ac_save_cc="$CC" CC="$CC -pthread" AC_RUN_IFELSE([AC_LANG_SOURCE([[ === -- ___ Python tracker <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12225] current tip doesn't build without mercurial installed
Roumen Petrov added the comment: Check for python executable is not complete . What about if system has only version 3+ installed ? -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue12225> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12379] build outside source fail in head
New submission from Roumen Petrov : correct is -I$(srcdir)/Include -- components: Build messages: 138755 nosy: rpetrov priority: normal severity: normal status: open title: build outside source fail in head versions: Python 3.3 ___ Python tracker <http://bugs.python.org/issue12379> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9436] test_sysconfig failure: build a 32-bit Python a 64-bit OS
Roumen Petrov added the comment: The test case is bogus. Until is removed you could use CC='gcc -m32'. -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue9436> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12379] build outside source fail in head
Roumen Petrov added the comment: cf. http://hg.python.org/cpython/rev/0d0ca6f95d9d -- ___ Python tracker <http://bugs.python.org/issue12379> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5572] packaging should respect the LIBS configure env var
Roumen Petrov added the comment: Collin, I'm sure that you could use LDFLAGS instead LIBS to boost python. If I remember well this require set_executables to be commented in setup.py. -- ___ Python tracker <http://bugs.python.org/issue5572> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12588] test_capi.test_subinterps() failed on OpenBSD (powerpc)
Roumen Petrov added the comment: Hi Landry , what is result if you move _testembed to upper directory and run it with environment so that shared python library from upper to be loaded (LD_LIBRARY_PATH= )? -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue12588> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12641] Remove -mno-cygwin from distutils
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue12641> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12641] Remove -mno-cygwin from distutils
Roumen Petrov added the comment: it is save to remove -mno-cygwin from Mingw32CCompiler -- ___ Python tracker <http://bugs.python.org/issue12641> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12678] test_packaging and test_distutils failures under Windows
Roumen Petrov added the comment: diff --git a/Lib/distutils/tests/test_sdist.py b/Lib/distutils/tests/test_sdist.py index 440af98..520289c 100644 --- a/Lib/distutils/tests/test_sdist.py +++ b/Lib/distutils/tests/test_sdist.py @@ -381,6 +381,15 @@ class SDistTestCase(PyPIRCCommandTestCase): self.assertEqual(manifest, ['README.manual']) +if os.name == 'nt': +archive_name = join(self.tmp_dir, 'dist', 'fake-1.0.zip') +with zipfile.ZipFile(archive_name, "r", ) as zipfp: +archive = zipfp.infolist() +filenames = [zipinfo.filename for zipinfo in archive] +self.assertEqual(sorted(filenames), ['fake-1.0/PKG-INFO', + 'fake-1.0/README.manual']) +return + archive_name = join(self.tmp_dir, 'dist', 'fake-1.0.tar.gz') archive = tarfile.open(archive_name) try: -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue12678> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] cross-compilation support for python build
Changes by Roumen Petrov : Added file: http://bugs.python.org/file23034/python-py3k-20110825-CROSS.patch ___ Python tracker <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw32 with distutils
Roumen Petrov added the comment: follow recent changes to distutils and packaging modules and platform tests without os major version ... (require python-py3k-20110825-CROSS.patch from #3754) -- Added file: http://bugs.python.org/file23035/python-py3k-20110825-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2889] curses for windows (alternative patch)
Roumen Petrov added the comment: -1 for PDCurses -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue2889> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io
Roumen Petrov added the comment: patch of patch attached to issue 3871 --- ./Modules/_io/_iomodule.h.MINGW 2009-12-23 12:52:04.0 +0200 +++ ./Modules/_io/_iomodule.h 2009-12-14 22:01:16.0 +0200 @@ -72,7 +72,7 @@ PyObject *filename; /* Not used, but part of the IOError object */ Py_ssize_t written; } PyBlockingIOErrorObject; -PyAPI_DATA(PyObject *) PyExc_BlockingIOError; +extern PyObject* PyExc_BlockingIOError; /* * Offset type for positioning. -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue9665> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1597850] Cross compiling patches for MINGW
Roumen Petrov added the comment: -1 for the patch (after review of cross-3.0-0.7.diff) : 1) AC_CHECK_TOOLS(CC,gcc cc) and AC_CHECK_TOOLS(CXX,g++ c++) is bogus 2) "$CC -dumpmachine" when is added AC_CANONICAL_HOST is bogus 3) if (strcmp(buffe,me) "123")) is buggy Good point is setup.py is to exclude default searches for header/libraries in /usr/XXX directories . Note that this is requested in other issues not related to cross compilation. About pgen build i'm not sure that is wort to cross-build as there is no reason to recreate files , right ? To me this is only dependency issue. -- ___ Python tracker <http://bugs.python.org/issue1597850> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7546] msvc9compiler.py: add .asm extension
Roumen Petrov added the comment: To me distutils does not support assembler files and for other compilers this is required to build ctypes - see also issue 2942. -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue7546> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io
Roumen Petrov added the comment: Ben, import of variables cannot be changed to export as this will produce crash in application ("core dump"/"bus error" etc.) that try to use them. -- ___ Python tracker <http://bugs.python.org/issue9665> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7546] msvc9compiler.py: add .asm extension
Roumen Petrov added the comment: Please see my comments to issue 2942 - so I think compilers should support assembler suffixes. -- ___ Python tracker <http://bugs.python.org/issue7546> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] cross-compilation support for python build
Roumen Petrov added the comment: It seems to me I forgot to upload version after updates in Lib/sysconfig.py from issue 7880. I could not understand what Florent Xicluna (flox). I could not reproduce it. To me update abspath -> realpath is bogus and with reverted update of Lib/sysconfig.py test_sysconfig pass. This patch is restored previous behaviour and now symlinked system python into cross build tree will behave as before i.e. as expected ;) -- Added file: http://bugs.python.org/file18625/python-trunk-20100824-CROSS.patch ___ Python tracker <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw32 with distutils
Roumen Petrov added the comment: update patch still for 2.7 with - restored build of ctypes (broken after recent updates) - python build with ncurses library, test pass - python build with readline library, test pass -- Added file: http://bugs.python.org/file18626/python-trunk-20100824-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2889] curses for windows (alternative patch)
Roumen Petrov added the comment: Recent ncurses pass python tests with only one small update (part of patch to issue 3871): = --- ./Lib/test/test_curses.py.MINGW 2010-08-09 00:03:48.0 +0300 +++ ./Lib/test/test_curses.py 2010-08-09 00:05:38.0 +0300 @@ -167,11 +167,16 @@ curses.delay_output(1) curses.echo() ; curses.echo(1) -f = tempfile.TemporaryFile() +fx = tempfile.TemporaryFile() +# cf tempfile.py TemporaryFile vs NamedTemporaryFile +if os.name != 'posix' or os.sys.platform == 'cygwin': +f = fx.file +else: +f = fx stdscr.putwin(f) f.seek(0) curses.getwin(f) -f.close() +fx.close() curses.halfdelay(1) curses.intrflush(1) = About TERM environment variable - I don't have time to test ncurses if is not set. Also PDCurses is not updated since 2008. -- ___ Python tracker <http://bugs.python.org/issue2889> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue9674> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9860] Building python outside of source directory fails
Roumen Petrov added the comment: Please could you remove object files from source tree then try again. This is invalid issue. -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue9860> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9189] Improve CFLAGS handling
Roumen Petrov added the comment: -1 for the changes. Please restore to previous state. The patch break all uses of well documented build variables. -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue9189> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9807] deriving configuration information for different builds with the same prefix
Roumen Petrov added the comment: - As configure script add new "substitute variable" LDVERSION" why do not use LDVERSION in Makefile instead $(VERSION)$(ABIFLAGS). Note first to replace in configure script LDVERSION="$(VERSION)" to LDVERSION="$VERSION" ! - May be $(LN) -s is not portable. What about to add macro AC_PROG_LN_S in configure script and to use $(LN_S) in makefile ? -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue9807> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] cross-compilation support for python build
Changes by Roumen Petrov : Added file: http://bugs.python.org/file19586/python-2.7-20101112-CROSS.patch ___ Python tracker <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw32 with distutils
Changes by Roumen Petrov : Added file: http://bugs.python.org/file19587/python-2.7-20101112-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] cross-compilation support for python build
Changes by Roumen Petrov : Added file: http://bugs.python.org/file19588/python-py3k-20101112-CROSS.patch ___ Python tracker <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw32 with distutils
Roumen Petrov added the comment: And the patch for py3k (future 3.2) . Note require python-py3k-20101112-CROSS.patch from issue 3754 to be applied first. -- Added file: http://bugs.python.org/file19589/python-py3k-20101112-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw32 with distutils
Roumen Petrov added the comment: But different build system make new plaform ! Roumen -- ___ Python tracker <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw32 with distutils
Roumen Petrov added the comment: No it is win32 for the resulting binaries. Idea is following (issue3754) . Travial patch - move method get_platform global _get_platform and variable host_platform is initialized to its return value. Then replace all calls of sys.platform and get_platform() to use host_platform. In the patch for this issue _get_platform is modiffed to return mingw32 if so host_platform will be 'minwg32'. Including compiler and etc. don't work well in cross-compilation environment as the build script is run with python from build system. Roumen -- ___ Python tracker <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11365] Integrate Buildroot patches (cross-compilation)
Roumen Petrov added the comment: All is duplicate on already posted patches . It is not work to review limited functionality posted here. -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue11365> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] cross-compilation support for python build
Roumen Petrov added the comment: Uhh after some pseudo multiarch improvements previous patch fail. So new one is uploaded. Also with this version cross-build won't build pgen$(EXEEXT). -- Added file: http://bugs.python.org/file21570/python-py3k-20110407-CROSS.patch ___ Python tracker <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw32 with distutils
Roumen Petrov added the comment: Follow up updated patch to #3754 -- Added file: http://bugs.python.org/file21571/python-py3k-20110407-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11888] Add C99's log2() function to the math library
Roumen Petrov added the comment: Why configure script check two times for log2 function ? -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue11888> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12081] Remove distributed copy of libffi
Roumen Petrov added the comment: On windows work with patched version of library . Unpatched does not work but I cannot remember python issue number. -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue12081> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4558] with_stdc89
Roumen Petrov added the comment: Issue with inline was resolved by configure macro. -- Added file: http://bugs.python.org/file22035/python3-20110520-c89.patch ___ Python tracker <http://bugs.python.org/issue4558> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] cross-compilation support for python build
Changes by Roumen Petrov : Added file: http://bugs.python.org/file22036/python-py3k-20110520-CROSS.patch ___ Python tracker <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw32 with distutils
Roumen Petrov added the comment: ...py3k-20110520...: with updates of integrated recently distutil2 (require patch from #3754 with same time-stamp). -- Added file: http://bugs.python.org/file22037/python-py3k-20110520-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10504] Trivial mingw compile fixes
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue10504> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1676121] Problem linking to readline lib on x86(64) Solaris
Roumen Petrov added the comment: Hmm why you dont use LDFLAGS ? It is well documented what to expect during configuration and build phase. -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue1676121> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10520] Build with --enable-shared fails
Roumen Petrov added the comment: It is wort to fix regression if all directories are absolute. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -54,7 +54,8 @@ for i, path in enumerate(dirlist): if not os.path.isabs(path): dirlist.insert(i + 1, dir) -break +return +dirlist.insert(0, dir) -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue10520> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5043] get_msvcr() returns None rather than []
Roumen Petrov added the comment: a) NoneType object is not iterable. If the function don't return empty list later distutil will fail on the lines like libraries.extend(self.dll_libraries) b) method for detection of a msvc runtime is not correct. If the method return a library GCC will link to two c-runtimes. Also some function dearation are not visible if is not specified appropriate preprocessor directive. So I could not found reason this method to exist . -- ___ Python tracker <http://bugs.python.org/issue5043> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10560] Fixes for Windows sources
Roumen Petrov added the comment: posix_module has to use Py_LL(...) -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue10560> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10615] Trivial mingw compile fixes
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue10615> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10782] Not possible to cross-compile due to poor detection of %lld support in printf
Roumen Petrov added the comment: Use config.cache to set ac_cv_have_long_long_format -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue10782> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9419] RUNSHARED needs LDFLAGS
Roumen Petrov added the comment: LDFLAGS make no sense for run time. The patch seems to me bogus. -- ___ Python tracker <http://bugs.python.org/issue9419> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8957] strptime('%c', ..) fails to parse output of strftime('%c', ..) in non-English locale
Roumen Petrov added the comment: time.strptime(s, '%c' ) ? -- nosy: +rpetrov ___ Python tracker <http://bugs.python.org/issue8957> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9419] RUNSHARED needs LDFLAGS
Roumen Petrov added the comment: Yes Peter, build outside source tree fail for, fail for me and pass for python developers :). So no idea how to convince them to fix this issue. Next is from my sources for python 2.7 Index: Lib/distutils/tests/test_build_ext.py === --- Lib/distutils/tests/test_build_ext.py (revision 87946) +++ Lib/distutils/tests/test_build_ext.py (working copy) @@ -91,6 +91,9 @@ sys.stdout = StringIO() try: cmd.ensure_finalized() +#Broken after issue 7712(r78136) : add a temp_cwd context manager to test_support ... +#Without current working dir: "...cannot find -lpython27" +cmd.library_dirs.insert(0, test_support.SAVEDCWD) cmd.run() finally: sys.stdout = old_stdout @@ -284,6 +287,12 @@ # returns wrong result with --inplace other_tmp_dir = os.path.realpath(self.mkdtemp()) old_wd = os.getcwd() +print >> sys.stderr, "...TRACE test_build_ext.py:test_get_outputs old_wd=%s" %(old_wd) +#Without current working dir: "...cannot find -lpython27" +#NOTE: After issue #7712(r78136) test cannot use old_wd ! +#cmd.library_dirs.insert(0, old_wd) +cmd.library_dirs.insert(0, test_support.SAVEDCWD) +#?#cmd.library_dirs.insert(0, old_wd) os.chdir(other_tmp_dir) try: cmd.inplace = 1 = -- ___ Python tracker <http://bugs.python.org/issue9419> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8957] strptime(.., '%c') fails to parse output of strftime('%c', ..) in some locales
Roumen Petrov added the comment: - %T is equal for %H:%M:%S - locales with %A and %B are broken on this platform as %c is "Appropriate date and time representation (%c) with abbreviations" -- ___ Python tracker <http://bugs.python.org/issue8957> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9419] RUNSHARED needs LDFLAGS
Roumen Petrov added the comment: Alexander, I already answer to you case. About the patch it is part of issue3871 ;) -- ___ Python tracker <http://bugs.python.org/issue9419> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] cross-compilation support for python build
Roumen Petrov added the comment: fixed patch failure on Parser/pgen.stamp -- Added file: http://bugs.python.org/file20534/python-2.7-20110126-CROSS.patch ___ Python tracker <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] cross-compilation support for python build
Changes by Roumen Petrov : Added file: http://bugs.python.org/file20536/python-py3k-20110126-CROSS.patch ___ Python tracker <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw32 with distutils
Roumen Petrov added the comment: fixed test case failure for 32-bit time_t -- Added file: http://bugs.python.org/file20538/python-2.7-20110126-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw32 with distutils
Changes by Roumen Petrov : Added file: http://bugs.python.org/file20539/python-2.7-20110126-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw32 with distutils
Changes by Roumen Petrov : Removed file: http://bugs.python.org/file20539/python-2.7-20110126-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw32 with distutils
Changes by Roumen Petrov : Added file: http://bugs.python.org/file20540/python-py3k-20110126-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1204] readline configuration for shared libs w/o curses dependencies
Roumen Petrov <[EMAIL PROTECTED]> added the comment: In the configure{.in} exist another bug: -- AC_CHECK_LIB(readline, readline) if test "$ac_cv_have_readline_readline" = no then AC_CHECK_LIB(termcap, readline) fi -- but "grep _readline_readline configure" show that variable in use is $ac_cv_lib_readline_readline, so the check for function termcap in readline can be removed safely - it is never reached. I would like to propose another patch that don't use possible unresolved symbol to detect presence of library. The new patch will define HAVE_LIBREADLINE. If necessary will check for dependent library and link it in correct order. The script print messages like next: -- checking how to link readline libs... -lreadline -lncursesw checking for rl_callback_handler_install in -lreadline... yes checking for rl_pre_input_hook in -lreadline... yes checking for rl_completion_matches in -lreadline... yes -- The patch is for branch release25-maint. It is without changes in configure script, i.e autoconf has to run to recreate it after applying. The patch can be applied to trunk as well. -- nosy: +rpetrov Added file: http://bugs.python.org/file11272/python-release25-readline.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1204> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3718] environment variable MACHDEP and python build system
New submission from Roumen Petrov <[EMAIL PROTECTED]>: A) The reason to propose this patch following paragraph from README: 2) To set sys.platform to something sensible, pass the following environment variable to the configure script: MACHDEP=unicosmk The sentence above is not true in all cases. It don't state how to pass as example 1) MACHDEP=abcd export MACHDEP ./configure 2) MACHDEP=abcd ./configure 3) ./configure MACHDEP=abcd The Makefile.pre.in contain dependency rule "Run the configure script": that create config.status if file "configure" is changed as run the script. >From above three samples for environment varaible passing only 3) will save MACHDEP into variable CONFIG_ARGS from generated Makefile. The case 2) alwais lost it if config.status is created from makefile rule. The case 1) will work only if developer don't remeber to set it every day. B) The test case (note that MACHDEP isn't valid name!): $ MACHDEP=linuxTEST ./configure --disable-ipv6 checking MACHDEP... linuxTEST checking for build directories... done configure: creating ./config.status creating Makefile Now lets see if "configure" script is changed: $ touch configure; make /bin/sh ./configure '--disable-ipv6' checking MACHDEP... linux2 <-- MACHDEP is lost checking for build directories... done configure: creating ./config.status config.status: creating Makefile.pre config.status: creating Modules/Setup.config config.status: creating pyconfig.h config.status: pyconfig.h is unchanged creating Modules/Setup creating Modules/Setup.local creating Makefile CONFIG_FILES=Makefile.pre CONFIG_HEADERS= /bin/sh config.status config.status: creating Makefile.pre make -f Makefile.pre Makefile make[1]: Entering directory `/python-release25-maint' make[1]: `Makefile' is up to date. <--- extra make[1]: Leaving directory `/python-release25-maint' /bin/sh ./Modules/makesetup -c ./Modules/config.c.in \ The Makefile was updated, you may need to re-run make. gcc -pthread -c Note an extra attempt to create Makefile. C) Next lets see after patch: (the python configuration is the same as above): $ touch configure; make /bin/sh ./config.status --recheck running CONFIG_SHELL=/bin/sh /bin/sh ./configure --disable-ipv6 MACHDEP=linuxTEST --no-create --no-recursion checking MACHDEP... linuxTEST <-- MACHDEP is same as at configure time checking for build directories... done configure: creating ./config.status creating Modules/Setup creating Modules/Setup.local creating Makefile /bin/sh ./config.status Makefile.pre config.status: creating Makefile.pre /bin/sh ./Modules/makesetup -c ./Modules/config.c.in \ -s Modules \ Modules/Setup.config \ Modules/Setup.local \ Modules/Setup The Makefile was updated, you may need to re-run make. gcc -pthread -c - (ignore failure here since MACHDEP=linuxTEST is used only to show problem) D) Rerefence (from autoconf textinfo sections): 4.8.5 Automatic Remaking 7.2 Setting Output Variables (see macro AC_ARG_VAR) 16 config.status Invocation -- components: Build files: python-release25-MACHDEP.patch keywords: patch messages: 72116 nosy: rpetrov severity: normal status: open title: environment variable MACHDEP and python build system versions: Python 2.5 Added file: http://bugs.python.org/file11299/python-release25-MACHDEP.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3718> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3743] PY_FORMAT_SIZE_T is not for PyString_FromFormat
Roumen Petrov <[EMAIL PROTECTED]> added the comment: Since not all platforms support "%zd" the patch has to be rewritten. May be PY_FORMAT_SIZE_T isn't correctly defined in Include/pyport.h for the used "C" library. -- nosy: +rpetrov ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3743> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] minimal cross-compilation support for configure
New submission from Roumen Petrov <[EMAIL PROTECTED]>: This is minimal patch that add basic cross-compilation possibilities for python build (configure script). The patch add macro AC_CANONICAL_HOST. This macro require files config.guess, config.sub. The patch don't include them. You may obtain them from GNU automake tarbal. As result of macro new variable $host ("host triplet":=cpu-verdor-os) is used to detect so called "host system". Since this is basic patch, detection of build system in native builds based on $ac_sys_system and/or $ac_sys_release isn't replaced. This detection isn't appropriate for cross-compilation environment as contain values for "build system" and has to be replaces in addition by future patches. Also the patch posted in http://bugs.python.org/issue3718 (about environment variable MACHDEP) isn't required for native builds, but will help in case of cross-compilation. -- files: python-trunk-CROSS.patch keywords: patch messages: 72299 nosy: rpetrov severity: normal status: open title: minimal cross-compilation support for configure Added file: http://bugs.python.org/file11337/python-trunk-CROSS.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3645] readline module Crashs on OpenBSD/amd64
Roumen Petrov <[EMAIL PROTECTED]> added the comment: may issue 1204 is more general -- nosy: +rpetrov ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3645> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1204] readline configuration for shared libs w/o curses dependencies
Roumen Petrov <[EMAIL PROTECTED]> added the comment: I realize too late that in my patch line "if test $py_cv_lib_readline = !yes; then" is not correct. :( It has to be "if test $py_cv_lib_readline = no; then", i.e. s/!yes/no/'. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1204> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross building python for mingw32 with distutils
Roumen Petrov <[EMAIL PROTECTED]> added the comment: P.S.: this patch cover changes in the python C-code proposed in issue 1412448 as include only necessary modifications. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross building python for mingw32 with distutils
New submission from Roumen Petrov <[EMAIL PROTECTED]>: This is a completely new patch against trunk that try to resolve mingw32 build. The first version to show problems with current python builds system, to propose solutions/work-arounds and to be stating point for discussion. Also I prefer some issues to be resolved later when we agree on the basic issues. The patch is tested in cross-compilation environment and native build has to be tested too. Also the patch show how to use cross-compilation environment and require patch posted in issue 3754 ("minimal cross-compilation support for configure") to be applied first. The new patch share many commons with issue 841454 "Cross building python for mingw32" posted by Andreas Ames, on 2003-11-13), but build process use distutils instead scons. Also some mingw related changes from issue 1597850 ("Cross compiling patches for MINGW" - Han-Wen Nienhuys, from 2006-11-16) are shared too, but we differ in concept how to use cross-compilation environment. The correct way is to use $host variable (see issue 3754). Also my patch use python installed on build system along with some hacks to overcome distutils limitations. The main issue "how to select correct compiler" in cross-compilation environment isn't resolved at all. The patch is tested with installed python version 2.4. Usually the cross-compiler is installed in same directories as native compiler but tools are prefixed by -- (see meanign of "host triplet"). In this environment we can't cross-compile even if we select mingw as compiler in arguments for "setup.py": The method get_versions() from cygwinccompiler.py call find_executable for to find gcc, ld, dllwrap but on build system they point to native compiler and that aren't prefixed. Also the expression "result = re.search('(\d+\.\d+(\.\d+)*)',out_string)" return as example '2.17.50.0.6' and later StrictVersion fail since value is not in format N.N{.N{A{N}}}. If we replace '*' with '?" in regular expression we will get correct result, but this isn't right solution. So the question is 'how to pass compiler to distutils' (as example for python 2.4) remain open. Work-around: install mingw cross-suite in own directory (MINGW_ROOT) and prepend PATH environment variable with both paths: - $MINGW_ROOT/bin - $MINGW_ROOT//bin where is something like i586-pc-mingw32 (depend from you host selected when you build suite). In this case find_executable will find mingw ld and since -v option return something like "GNU ld version 2.17.50 20060824", regular expresion value that make StrictVersion happy. Note that in both environment configure script find compiler tools prefixed as example by "i586-pc-mingw32-". My mingw is build for host "i386-mingw32msvc"(this isn't correct, but is acceptable for host. For next version I plan to use for build the correct one, i.e i386-pc-mingw32). So in the final Makefile I see: CC= i386-mingw32msvc-gcc AR= i386-mingw32msvc-ar RANLIB= i386-mingw32msvc-ranlib Also setup.py set compiler attribute linker_so - for details see comments in the patch. Another point is to link installed python in top-build directory so that on posix system distutils read variables from our makefile instead from installed in build system. In this case python_build (an internal to distutils flag) is set. A, but not common, build issue is that some python 2.4 versions will search for pyconfig-32.h instead pyconfig.h. Symptoms: === running build running build_ext error: ./pyconfig-32.h: No such file or directory === I see this on cent-os (5.0?), but I can't see on slackware 11.0. This patch don't address this. Just go in top-build directory and create a link, i.e. "ln -s ./pyconfig.h pyconfig-32.h". If you system support emulation after build you may run python. The build python search for modules. After patch modules are with suffix same as for native build - .pyd. You may thin them to the top-build directory or to follow binary distribution - create directory DLLs, enter into it and link pyd-files: $ for f in ../build/lib.*/*.pyd; do ln -sf $f; done Differences between mingw build python and binary distribution(native build): Mingw build follow posix rules and will create more modules than native build. In the native build they are part from main executable(buildin). This is the list: array, audioop, binascii, _bisect, _bytesio, cmath, _codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp, _codecs_kr, _codecs_tw, _collections, cPickle, cStringIO, _csv, datetime, _fileio, _functools, future_builtins, _heapq, _hotshot, imageop, itertools, _json, _locale, _lsprof, math, mmap, msvcrt, _multibytecodec, operator, parser, _random, strop, _struct, _sub
[issue3708] os.urandom(1.1): infinite loop
Roumen Petrov <[EMAIL PROTECTED]> added the comment: It seems to me that test case will fail on windows and vms platforms. The case contain os.urandom(1.1) but in posixmodule.c for urandon functions (windows and vms) exits: PyArg_ParseTuple(args, "i:urandom", &howMany)) ./python.exe -c 'import os; print "%s" %(os.urandom(1.9))' => -c:1: DeprecationWarning: integer argument expected, got float -- nosy: +rpetrov ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3708> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1706863] Failed to build Python 2.5.1 with sqlite3
Roumen Petrov <[EMAIL PROTECTED]> added the comment: The search for *dll.a is described in paragraph "direct linking to a dll" here: http://sourceware.org/binutils/docs/ld/WIN32.html -- nosy: +rpetrov ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1706863> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3824] test_tarfile fails on cygwin (unicode decode error)
Roumen Petrov <[EMAIL PROTECTED]> added the comment: What is test result if the environment variable LANG is set to C ? -- nosy: +rpetrov ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3824> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1706863] Failed to build Python 2.5.1 with sqlite3
Roumen Petrov <[EMAIL PROTECTED]> added the comment: I think that modification has to be in cygwinccompiler. It is specific for win32 binutils and impact both - cygwin and mingw. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1706863> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1706863] Failed to build Python 2.5.1 with sqlite3
Roumen Petrov <[EMAIL PROTECTED]> added the comment: If Jason patch resolve issue may I ask cygwincompiler.py to be modified too just in case if as result of issue2445 is decided to switch back ? ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1706863> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2445] Use The CygwinCCompiler Under Cygwin
Roumen Petrov <[EMAIL PROTECTED]> added the comment: May be check for compiler.compiler_type (from sysconfig.py ) has to be replaced with a check for descendant classes of UnixCCompiler, i.e. to include mingw32 too ? Also CygwinCCompiler __init__ has to be reviewed too. As example : - # Hard-code GCC because that's what this is all about. # XXX optimization, warnings etc. should be customizable. self.set_executables(compiler='gcc -mcygwin -O -Wall', . - May override in unexpected way settings from customize_compiler. I thin that proposed modification in sysconfig.py with removing(or replacing) of self.set_executables from CygwinCCompiler __init__ will help me for issue3871 (cross building python for mingw32 with distutils). As example I will remove a hack in the setup.py: --- @@ -196,8 +196,26 @@ if compiler is not None: (ccshared,cflags) = sysconfig.get_config_vars('CCSHARED','CFLAGS') args['compiler_so'] = compiler + ' ' + ccshared + ' ' + cflags + +# FIXME: Is next correct ? +# To link modules we need LDSHARED passed to setup.py otherwise +# distutils will use linker from build system if cross-compiling. +linker_so = os.environ.get('LDSHARED') +if linker_so is not None: +args['linker_so'] = linker_so + self.compiler.set_executables(**args) --- Thanks to Hirokazu who point me, in an another thread, that cygwin build don't use CygwinCCompiler. -- nosy: +rpetrov ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2445> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross building python for mingw32 with distutils
Roumen Petrov <[EMAIL PROTECTED]> added the comment: For the protocol: issue2445 impact proposed patch. Also I finish the tests and I will upload soon new patch - I the current patch ( rpetrov, 2008-09-15 02:08) "Modules/selectmodule.c" isn't ported and this prevent socked and related modules to work. Also I understand the one of the reasons python 2.6x to be linked with msvcr90 - many of bugs related to math functions are fixed in this version of runtime. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2445] Use The CygwinCCompiler Under Cygwin
Roumen Petrov <[EMAIL PROTECTED]> added the comment: P.S. : about: static_lib_extension = ".dll.a" - it is suffix for import library and "unixccompiler.py.diff" patch from issue1706863 propose dylib_lib_extension = ".dll.a" . ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2445> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2445] Use The CygwinCCompiler Under Cygwin
Roumen Petrov <[EMAIL PROTECTED]> added the comment: I forgot an another issue in CygwinCCompiler __init__: if gcc isn't version "2.91.57" then method will set dll_libraries to result of get_msvcr(), but the result may be is None. In this case link method fail on the line libraries.extend(self.dll_libraries). ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2445> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1706863] Failed to build Python 2.5.1 with sqlite3
Roumen Petrov <[EMAIL PROTECTED]> added the comment: About experimental_distutils.patch - extra changes that has to go in a specific compiler class. As example platform can be any but compiler gcc(mingw) that produce executables for windows host platform. In this case search has to include suffix .dll.a. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1706863> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3547] Ctypes is confused by bitfields of varying integer types
Roumen Petrov <[EMAIL PROTECTED]> added the comment: test_mixed_4 fail on: Python 2.6rc2+ (trunk:66617M, Sep 25 2008, 16:32:44) [GCC 3.4.5 (mingw special)] on win32 Type "help", "copyright", "credits" or "license" for more information. sizeof(X) return 12. -- nosy: +rpetrov ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3547> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3966] Win32ErrorTests from test_os.py
New submission from Roumen Petrov <[EMAIL PROTECTED]>: test method - call os.method test_mkdir(self) - os.chdir test_access(self) - os.utime test_chmod(self) - os.utime Is the test correct ? -- messages: 73807 nosy: rpetrov severity: normal status: open title: Win32ErrorTests from test_os.py ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3966> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3547] Ctypes is confused by bitfields of varying integer types
Roumen Petrov <[EMAIL PROTECTED]> added the comment: Yes this extra define was the problem. Instead hint /* Windows */ what about /* MSVC, GCC(with -mms-bitfields) */ ? The option -mms-bitfields is available for GCC compiler on mingw and cygwin targets. About test_bitfields.py: - comment in test_mixed_4: if GCC compiler has option -mms-bitfields it will produce code compatible with MSVC. May be comment has to include this information. - may be method test_mixed_1 need similar comment as test_mixed_4, but even without comment is fine with me. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3547> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3547] Ctypes is confused by bitfields of varying integer types
Roumen Petrov <[EMAIL PROTECTED]> added the comment: Flag start only with one minus: -mms-bitfields Fine with me. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3547> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1706863] Failed to build Python 2.5.1 with sqlite3
Roumen Petrov <[EMAIL PROTECTED]> added the comment: no objections ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1706863> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] minimal cross-compilation support for configure
Changes by Roumen Petrov <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11664/python-trunk-CROSS.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] minimal cross-compilation support for configure
Changes by Roumen Petrov <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11337/python-trunk-CROSS.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross building python for mingw32 with distutils
Changes by Roumen Petrov <[EMAIL PROTECTED]>: -- keywords: +patch Added file: http://bugs.python.org/file11665/python-trunk-MINGW.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross building python for mingw32 with distutils
Changes by Roumen Petrov <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11491/python-trunk.patch-MINGW ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross building python for mingw32 with distutils
Roumen Petrov <[EMAIL PROTECTED]> added the comment: note: updated patch contain unsynchronized with trunk code in ./Objects/fileobject.c (after /* EINVAL is returned when an invalid filename or ... ) ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3871> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3995] iso-xxx/cp1252 inconsistencies in Python 2.* not in 3.*
Roumen Petrov <[EMAIL PROTECTED]> added the comment: I don't know iso codeset that define characters in code range 0x80 0x9f. This range is reserved for control symbols. The code of euro is 0xa4 in iso-8859-15. Also changes include symbols like 1/2, 3/4 and I forgot other differences. -- nosy: +rpetrov ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3995> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3995] iso-xxx/cp1252 inconsistencies in Python 2.* not in 3.*
Roumen Petrov <[EMAIL PROTECTED]> added the comment: Thanks Martin for correction: yes not reserved - assigned. Jean-Michel, you test case is incorrect. You terminal is run in CP1252 where byte \x80 is shown as euro sing. But if you run terminal(if is possible in reported operating system) in ISO-8859-{1|15} this byte is a control character without visual representation. To avoid "visual" ambiguity you should use hex representation of characters: 1) >>> unicode('\x80', 'cp1252') u'\u20ac' 2) >>> unicode('\xa4','iso-8859-15') u'\u20ac' For the second case in you terminal you should enter: >>> unicode('¤','iso-8859-15') u'\u20ac' '¤'(cp1252) = \xa4 = 164 = '€'(iso-8859-15) I guess you understand what is incorrect in you report. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3995> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4010] configure options don't trickle down to distutils
Roumen Petrov <[EMAIL PROTECTED]> added the comment: One of the problems that I see in that LDFLAGS is Makefile variable and Makefile is part of distribution for posix build systems. If you set specific LDFLAGS and you want to distribute own python build user will get you specific settings. One another environment variable is OPT (if compiler don't accept -R XXX may be -Wl,-rpath,XXX ?) and we may use it. Also OPT environment variable is also Makefile variable and user specific settings will go into distribution too :( . I quick look into distutils code show that sysconfig.py don't parse LDFLAGS and append environment variable LDFLAGS as is to the ldshared variable. So the first question is why setup.py parse only -L flags instead to pass variable value as is (aka sysconfig.py). The second question is why LDFLAGS is a Makefile variable ? For now I would like to know if you set on Solaris suitable LD_RUN_PATH(for the build) and LD_LIBRARY_PATH (when run) did you succeed to build and run python ? -- nosy: +rpetrov ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4010> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com