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


Groups > comp.lang.python > #38796

Re: Python Makefiles... are they possible?

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <oscar.j.benjamin@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; '(at': 0.03; 'subject:Python': 0.05; 'repository': 0.05; "'python": 0.07; '(of': 0.07; 'makefile': 0.07; 'setup.py': 0.07; 'python': 0.09; 'cc:addr:python-list': 0.10; 'programs.': 0.11; "'make": 0.16; 'bundles': 0.16; 'cc:name:python list': 0.16; 'invoking': 0.16; 'makefile.': 0.16; 'malcolm': 0.16; 'program?': 0.16; 'subject:possible': 0.16; "test'": 0.16; 'wrote:': 0.17; 'compilation': 0.17; 'tests': 0.18; 'file.': 0.20; 'written': 0.20; 'controlled': 0.22; 'cc:2**0': 0.23; 'example': 0.23; 'command': 0.24; 'least': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'common': 0.26; 'compiled': 0.27; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'far,': 0.29; 'piece': 0.29; 'related': 0.30; 'normally': 0.30; 'compatible': 0.30; 'code': 0.31; 'running': 0.32; 'purposes,': 0.33; 'received:google.com': 0.34; 'project': 0.34; 'done': 0.34; 'subject:?': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'anything': 0.36; 'possible': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'things': 0.38; 'nothing': 0.38; 'within': 0.64; "'make'": 0.84; '2013': 0.84; 'oscar': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=vBiwQBaqR3KOk3mDhzIU3MBKuo+CrQ8+3EwNSoBCHlE=; b=Z2p700vYTEIWwUVhmOK6iNucVv0AV7TF5xuH3nt9LATbnpcpfc4tR1FLu9fBkLMqyB rujB52UKumyiU8wILc8RV0rbLqnwKE8ftp9ADDv0zgUP/OQTdBACzgCuoO4bgt2v8+T/ LDsjFumV497TupDRQRclfadCTkhVg/bw8aAVtdkcXZ24bu/E674iIosI/dnxAl+Vxd1+ ICqm2aJpG55KQ5oz6iR8engJlNnAaxz1PSQmqLCSf9pgtWZzYKFzlW9U23iRqLjuf2hG UvnV4bha409XshM+MYZSuLTUMXqxiqP9TfDDQ/2+yZ/00YiQLwqmrjivDZN2Omibbs/o f5Fw==
X-Received by 10.58.155.99 with SMTP id vv3mr26240566veb.50.1360717267077; Tue, 12 Feb 2013 17:01:07 -0800 (PST)
MIME-Version 1.0
In-Reply-To <e8d436e1-f226-4a81-968f-295c51198198@googlegroups.com>
References <e8d436e1-f226-4a81-968f-295c51198198@googlegroups.com>
From Oscar Benjamin <oscar.j.benjamin@gmail.com>
Date Wed, 13 Feb 2013 01:00:47 +0000
Subject Re: Python Makefiles... are they possible?
To Malcolm White <white.m88@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Cc Python List <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1731.1360717275.2939.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1360717275 news.xs4all.nl 6969 [2001:888:2000:d::a6]:43498
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:38796

Show key headers only | View raw


On 13 February 2013 00:44, Malcolm White <white.m88@gmail.com> wrote:
> I have written a piece of code that will be part of a larger repository of related programs. Within this repository, it is standard to issue a 'make' command to compile any desired program. Is it possible to create a Makefile to compile a simple Python program? Based on what I have come across so far, this is not (at least not typically) the way things are done with Python.

You can use a Makefile for anything you want in a Python project.
However Python code is not (typically) compiled so it is not common
practise to compile it with or without a Makefile. When part of a
Python project is compiled because, for example it bundles some C code
to be used within Python, the compilation needs to performed in way
that will be compatible with Python so the process is normally
controlled by Python, through a setup.py file. In this case
compilation is done with something like 'python setup.py build' (Of
course there's nothing to stop you from adding that command to a
Makefile and invoking it with 'make').

I often use Makefiles in Python projects for other purposes, though,
such as running tests with 'make test' or building documentation with
'make doc'.


Oscar

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


Thread

Python Makefiles... are they possible? Malcolm White <white.m88@gmail.com> - 2013-02-12 16:44 -0800
  Re: Python Makefiles... are they possible? Joel Goldstick <joel.goldstick@gmail.com> - 2013-02-12 19:55 -0500
  Re: Python Makefiles... are they possible? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-02-13 01:00 +0000
    Re: Python Makefiles... are they possible? Roy Smith <roy@panix.com> - 2013-02-12 20:06 -0500
      Re: Python Makefiles... are they possible? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-02-13 05:54 +0000
        Re: Python Makefiles... are they possible? Benjamin Schollnick <benjamin@schollnick.net> - 2013-02-13 05:45 -0500
        Re: Python Makefiles... are they possible? Dave Angel <d@davea.name> - 2013-02-13 08:33 -0500
        Re: Python Makefiles... are they possible? Roy Smith <roy@panix.com> - 2013-02-13 08:44 -0500
          Re: Python Makefiles... are they possible? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-02-14 13:46 +1100
            Re: Python Makefiles... are they possible? Roy Smith <roy@panix.com> - 2013-02-13 22:02 -0500
            Re: Python Makefiles... are they possible? Chris Angelico <rosuav@gmail.com> - 2013-02-14 17:43 +1100

csiph-web