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


Groups > comp.lang.python > #91472

Re: Is it possible to find python34.lib from within Python?

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'subject:Python': 0.05; 'distutils': 0.05; '(of': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:possible': 0.16; 'wrote:': 0.16; 'embedding': 0.22; 'code.': 0.23; 'paul': 0.24; 'script': 0.25; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; "i'm": 0.29; 'extending': 0.29; 'skip:u 20': 0.30; 'url:python': 0.33; 'subject:?': 0.34; 'file': 0.34; 'to:addr:python-list': 0.35; 'but': 0.36; 'url:org': 0.36; 'should': 0.37; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'received:org': 0.38; 'url:docs': 0.39; 'to:addr:python.org': 0.39; 'build': 0.40; 'sure': 0.40; 'some': 0.40; 'url:3': 0.60; 'provide': 0.61; 'received:204': 0.75; 'article': 0.77; 'subject:find': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ned Deily <nad@acm.org>
Subject Re: Is it possible to find python34.lib from within Python?
Date Fri, 29 May 2015 09:19:55 -0700
References <68710660-0f24-403a-8c3d-996c06a26a35@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 204.28.118.160
User-Agent MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
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.194.1432916402.5151.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1432916402 news.xs4all.nl 2924 [2001:888:2000:d::a6]:35277
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:91472

Show key headers only | View raw


In article <68710660-0f24-403a-8c3d-996c06a26a35@googlegroups.com>,
 Paul  Moore <p.f.moore@gmail.com> wrote:
> I want to set up a script to build some C code. I need to link it with 
> python34.lib, but I'm not sure how to locate that file without hard-coding 
> it.
[...]

If you are embedding Python, refer to the "Extending and Embedding" 
document in the Python documentation set and the description of 
python-config:

https://docs.python.org/3/extending/embedding.html#compiling-and-linking-
under-unix-like-systems

(Of course, if you are extending Python, Distutils should provide all 
the necessary flags.)

-- 
 Ned Deily,
 nad@acm.org

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


Thread

Is it possible to find python34.lib from within Python? Paul  Moore <p.f.moore@gmail.com> - 2015-05-29 07:29 -0700
  Re: Is it possible to find python34.lib from within Python? Ned Deily <nad@acm.org> - 2015-05-29 09:19 -0700

csiph-web