Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97430

Re: packaging code with compiled libraries

Path csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <mail@timgolden.me.uk>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'binary': 0.05; 'subject:code': 0.07; "'build'": 0.09; 'logic': 0.09; 'python': 0.10; 'def': 0.13; 'appropriate': 0.14; 'suggest': 0.15; 'compile.': 0.16; 'conditional': 0.16; 'from:addr:timgolden.me.uk': 0.16; 'from:name:tim golden': 0.16; 'libs': 0.16; 'message-id:@timgolden.me.uk': 0.16; 'packaging.': 0.16; 'phase,': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'run(self):': 0.16; 'setup.py.': 0.16; 'subject:packaging': 0.16; 'tjg': 0.16; 'wrote:': 0.16; 'library': 0.20; 'work,': 0.21; 'libraries': 0.22; 'code,': 0.23; 'bit': 0.23; 'seems': 0.23; 'tim': 0.24; 'header :In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'mostly': 0.27; 'packaging': 0.27; 'wonder': 0.27; 'question': 0.27; 'tend': 0.27; 'subdirectory': 0.29; 'url:mailman': 0.30; 'run': 0.33; 'class': 0.33; 'url:python': 0.33; 'platforms.': 0.33; 'received:192.168.100': 0.33; 'url:listinfo': 0.34; 'handle': 0.34; 'but': 0.36; 'should': 0.36; 'url:org': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'guys': 0.38; 'files': 0.38; 'copying': 0.38; 'received:192': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'where': 0.40; 'subject:with': 0.40; 'called': 0.40; 'some': 0.40; 'hang': 0.60; 'share': 0.61; 'charset:windows-1252': 0.62; 'more': 0.63; 'brain': 0.66; 'from:addr:mail': 0.70; 'url:distutils-sig': 0.84; 'wheels': 0.84
Subject Re: packaging code with compiled libraries
To python-list@python.org
References <67eacdc3-e493-44fe-859c-51b016995a3a@googlegroups.com>
From Tim Golden <mail@timgolden.me.uk>
Date Tue, 6 Oct 2015 08:16:56 +0100
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1
MIME-Version 1.0
In-Reply-To <67eacdc3-e493-44fe-859c-51b016995a3a@googlegroups.com>
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.410.1444115828.28679.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1444115828 news.xs4all.nl 23856 [2001:888:2000:d::a6]:48741
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:97430

Show key headers only | View raw


On 05/10/2015 20:43, Tim wrote:
> I have a package I want to share but have a question about packaging.
> 
> Mostly the package is pure python code, but it also requires some binary libraries (*.so, *.dll, *.dylib).  I want to bundle these libs so users don't have to compile. The package will run on *nix/windows/mac platforms.
> 
> Currently I handle this in setup.py. In the 'build' phase, I copy the platform-specific libs to a subdirectory called 'libs'.  
> 
>     class MyBuilder(build_py):
>         def run(self):
>             conditional logic for copying 
>             appropriate library files to 'libs'
>             etc etc.
>             build_py.run()
> 
> And that seems to work, but after reading more from the Python Packaging Authority, I wonder if that is the right way.  Should I be using wheels instead? 
> I think my brain fried a little bit while going through the doc.

I suggest you ask on distutils-sig which is where the PPA guys tend to
hang out.

  https://mail.python.org/mailman/listinfo/distutils-sig

TJG

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

packaging code with compiled libraries Tim <jtim.arnold@gmail.com> - 2015-10-05 12:43 -0700
  Re: packaging code with compiled libraries Rustom Mody <rustompmody@gmail.com> - 2015-10-05 19:42 -0700
  Re: packaging code with compiled libraries Tim Golden <mail@timgolden.me.uk> - 2015-10-06 08:16 +0100
  Re: packaging code with compiled libraries Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2015-10-06 10:50 +0100
    Re: packaging code with compiled libraries Tim <jtim.arnold@gmail.com> - 2015-10-06 08:40 -0700

csiph-web