🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #315

Re: kompilowanie plikow *.py

#315
From: Adam Karpierz
Date: Tue, 10 Dec 2002 21:59
16 lines
1623 bytes
Uzytkownik "Pawel J Maczewski" <pjmacz@slcj.uw.edu.pl> napisal:

> No dobrze, ale jak skompilowac skrypt, ktory nie jest modulem? Jest to
> wogole mozliwe? Musze ograniczyc zajeosc miejsca a bede uzywal
> 1 programu tylko na calej platformie, napisanego w pythonie, wiec
> myslalem ze kompilacja moze byc przydatna...

pyc.bat - kompilacja zbioru:
@python -c "import sys, py_compile; py_compile.compile(sys.argv[1])" %1

pycdir.bat - kompilacja katalogu wlacznie z poddrzewem:
@python -c "import sys, compileall; compileall.compile_dir(sys.argv[1],
force=1)" %1

--
Adam Karpierz
Technical Details
Message-ID: <at5oaa$j9d$1@news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!news.nask.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
References: <at4abc$11qi$1@news2.ipartners.pl> <el8qcdgj.fsf@etna.tenbit.com> <at4keb$19lm$1@news2.ipartners.pl> <at5m8k$484$1@news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!news.nask.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: "Adam Karpierz" <karpierz@_NOSPAM_alpha.pl>
Newsgroups: pl.comp.lang.python
Subject: Re: kompilowanie plikow *.py
Date: Tue, 10 Dec 2002 22:59:15 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 19
Message-ID: <at5oaa$j9d$1@news.tpi.pl>
References: <at4abc$11qi$1@news2.ipartners.pl> <el8qcdgj.fsf@etna.tenbit.com> <at4keb$19lm$1@news2.ipartners.pl> <at5m8k$484$1@news.tpi.pl>
NNTP-Posting-Host: ppp161.intertele.pl
X-Trace: news.tpi.pl 1039557771 19757 194.204.186.161 (10 Dec 2002 22:02:51 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Tue, 10 Dec 2002 22:02:51 +0000 (UTC)
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit