Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5B0A6200C65 for ; Sat, 15 Apr 2017 04:19:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 599B6160BA3; Sat, 15 Apr 2017 02:19:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A09AF160B8C for ; Sat, 15 Apr 2017 04:19:51 +0200 (CEST) Received: (qmail 90553 invoked by uid 500); 15 Apr 2017 02:19:50 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 90541 invoked by uid 99); 15 Apr 2017 02:19:50 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Apr 2017 02:19:50 +0000 Received: from [192.168.0.34] (ovaltofu.org [50.0.193.30]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 6A8731A00A6 for ; Sat, 15 Apr 2017 02:19:50 +0000 (UTC) Date: Fri, 14 Apr 2017 19:19:52 -0700 (PDT) From: Andi Vajda X-X-Sender: vajda@yuzu.local Reply-To: Andi Vajda To: pylucene-dev@lucene.apache.org Subject: Re: Building jcc 3.0 under linux / anaconda python In-Reply-To: Message-ID: References: User-Agent: Alpine 2.01 (OSX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1999413365-1492222793=:4810" archived-at: Sat, 15 Apr 2017 02:19:52 -0000 --0-1999413365-1492222793=:4810 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT On Sat, 15 Apr 2017, Rüdiger Meier wrote: > > > On 04/15/2017 12:52 AM, Petrus Hyvönen wrote: >> Hi, >> >> First, again - many thanks to all of you who made jcc work with python 3, >> this is a great thing! >> >> Now playing with linux building and I am using anaconda python distribution >> and it seems like the link library for python is called libpython3.6m.so >> instead of the libpython3.6 that other python seems to use and setup.py >> assume. I have another called libpython3. >> >> If I remove this extra_links_args it seems to build fine, as well as if I >> add a "m" to the end: >> >> elif platform == 'linux': >> #kwds["extra_link_args"] = \ >> # lflags + ['-lpython%s.%s' %(sys.version_info[0:2])] >> kwds["force_shared"] = True # requires jcc/patches/patch.43 >> >> The -m seems to indicate how python was built: >> http://stackoverflow.com/questions/16675865/difference-between-python3-and-python3m-executables >> >> Not sure if there is a danger in removing this, as long as it builds fine? > > Ah, I've had fixed this more complicated like this > https://github.com/rudimeier/jcc/commit/b4a7987ebeeb96d6c71b7635160f798303715877 > > But good to know that it works without. Actually I've had really wondered why > we such python setup.py would need complicated extra_link_args at all just to > link against itself. It probably depends on the setuptools version and the monkeypatch hackery done for linux support, where linking a plain shared library for JCC in shared mode (that libjcc.so thing) is harder than it should be. If removing all this still works, so be it, but older versions of setuptools required this up to a point. I'm in favor of getting rid of all this baggage at least in the Python 3 case, since we don't have any backwards compatibility requirement there. Andi.. > > cu, > Rudi > --0-1999413365-1492222793=:4810--