Re: [Py2exe-users] py2exe
by Nathan R. Yergler other posts by this author
Jul 28 2006 8:36AM messages near this date
[Py2exe-users] py2exe
|
[Py2exe-users] Starting 3 Programs from One Shell
programer_vedran_d wrote:
> HELLO ALL WHO CAN HELP ME ABOUT PYTHON FUCKING SCRIPTS SETUP,
Oh yes, shouting makes us anxious to help you.
>
> HI,AGAIN WHEN I WRITE IN PYTHON SHELL:
>
> from distutils.core import setup
> import py2exe
> setup(name="myscript",
> version='1.0',
> scripts=["myftp"])
It sounds like you're doing this in the interactive shell, which isn't
how it usually works. You typically save the code you wrote above to a
file (setup.py) and run it, along with a command (i.e., sdist, bdist,
py2exe).
So for example, setup.py might contain the following:
from distutils.core import setup
import py2exe
setup(name='myscript', version='1.0', scripts=['myftp'])
And then you would run that from the command line:
c:\> python setup.py sdist
Where sdist can be replaced with any distutils target (install, bdist,
py2exe, etc). Note that specifying py2exe won't work because you
haven't specified a windows or console argument.
>
> FUCKING ERROR IS:
Hrmmm.. maybe it's FUCKING you :). Or maybe you should read the FUCKING
documentation (see http://py2exe.org). Just a thought, just trying to
use the word of the day :).
>
> Traceback (most recent call last):
> File "<pyshell#1>", line 1, in -toplevel-
> setup(name="myscript",
> version='1.0',
> scripts=["myftp"])
> File "C:\Python24\distutils\core.py", line 101, in setup
> _setup_distribution = dist = klass(attrs)
> File "C:\Python24\distutils\dist.py&q uot;, line 130, in __init__
> setattr(self, method_name, getattr(self.metadata, method_name))
> AttributeError: DistributionMetadata instance has no attribute 'get___doc__'
>
>
&nb
> sp; ;
> THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
> --
> Odaberite XXLadsl - od sada 2 x br¾i uz iste cijene prikljuèka i paketa!
> Vi¹e saznajte na http://www.iskon.biz/xxladsl
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Py2exe-users mailing list
> Py2exe-users@[...].net
> https://lists.sourceforge.net/lists/listinfo/py2exe-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Py2exe-users mailing list
Py2exe-users@[...].net
https://lists.sourceforge.net/lists/listinfo/py2exe-users
Thread:
Programer_vedran_d
Nathan R. Yergler
|