Bittorent Source

cs_0mega Messages postés 1 Date d'inscription samedi 4 janvier 2003 Statut Membre Dernière intervention 8 mars 2005 - 8 mars 2005 à 18:00
taz_iup Messages postés 179 Date d'inscription mercredi 13 octobre 2004 Statut Membre Dernière intervention 21 mai 2014 - 9 mars 2005 à 08:49
Bonjour a tous !


J'essaie en vain de compiler la source du dernier client bittorent (python 2.4) mais sans succés.





Voici le read-me inclus avec la source :




install Python, version 2.3 or later -

http://python.org/



install a GTK 2.4 runtime -

http://gladewin32.sourceforge.net/



install pygtk 2.4 -

http://www.pcpm.ucl.ac.be/~gustin/win32_ports/



install venster -

http://venster.sourceforge.net/htdocs/index.html



install dnspython -

http://www.dnspython.org/



Apply dnspython_patch.diff to resolver.py



install py2exe -

http://starship.python.net/crew/theller/py2exe/



install the nullsoft (NSIS) installer -

http://www.nullsoft.com/free/nsis/



install the Processes NSIS plugin -

http://nsis.sourceforge.net/archive/viewpage.php?pageid=542

http://www.geocities.com/hardwiredteks/files/setup-processes.zip



the rest of these instructions can be abbreviated by just running build.bat



1> in a shell, go to the root BitTorrent directory and run this command

python winsetup.py py2exe



2> now copy all the necessary GTK files from the GTK root installation

directory (usually c:\GTK\, see the GTK_BASEPATH environment

variable) into the dist directory. See build.bat for details.



3> now run nsis on bittorrent.nsi

c:\progra~1\nsis\makensis.exe bittorrent.nsi



4> This will create an installer called BitTorrent-{VERSION}.exe

The installer is completely self-contained and will work on any

Windows machine, even without the above software having been

installed.





_____








J'ai donc installer tout ce qui est demander... Et quand j'essaie de l'éxécuter, avec le build.bat j'obtient cette erreur >





Click `Cancel` to cancel this installation." (on IDOK goto uninst)


Abort: ""


Call "QuitIt"


ClearErrors


ExecWait: "$R0 _?=$INSTDIR" (->)


IfErrors ?no_remove_uninstaller:


FunctionEnd


Section: "Install"


Call "IsUserAdmin"


Pop: $R0


StrCmp "$R0" "false" equal=abortinstall, nonequal=continueinstall


MessageBox: 0: "You must have Administrator privileges to install BitTorrent."


Goto: endofinstall


SetOutPath: "$INSTDIR"


WriteUninstaller: "$INSTDIR\uninstall.exe"


File: "dist\*.exe" -> no files found.


Usage: File /nonfatal /a (/r [/x filespec [...]] filespec [...] |


/oname=outfile one_file_only)


Error in script "bittorrent.nsi" on line 147 -- aborting creation process





C:\Documents and Settings\0megeaR\Bureau\Bittorent\BitTorrent-4.0.0>





Mhh !! J'ai donc essayer de faire "point-par-point" manuellement..


Ils disent donc qu'il faut "in a shell, go to the root BitTorrent directory and run this command

python winsetup.py py2exe"



J'ai déjà un autre probleme ici, car je ne sais pas comment aller dans le repertoire se trouvant la ":\Documents and Settings\0megeaR\Bureau\Bittorent\BitTorrent-4.0.0
" .. J'ai essayer quelques truc, mais en vain :p




IDLE 1.1

>>> open winsetup.py

SyntaxError: invalid syntax

>>> open 'winsetup.py'

SyntaxError: invalid syntax

>>> open "winsetup.py"

SyntaxError: invalid syntax






Bref, je devient fou ;D


.. Help ?

1 réponse

taz_iup Messages postés 179 Date d'inscription mercredi 13 octobre 2004 Statut Membre Dernière intervention 21 mai 2014 3
9 mars 2005 à 08:49
Tout simplement fait demarrer -> éxécuter.

Saisie cmd dans la fenetre puis valide.

une console DOS s'ouvre.

a coup de cd, va dans ton répertoire racine.

ex : cd c:\Document and settings\OmegaRBureau\Bittorrent-4.0.0

ensuite tape simplement la commande indiquée :

python winsetup.py py2exe



Voila tu peux deja essayer comme ca apres une fois que tu es dans le rep racine, tu devrai aussi pouvoir executer le reste.

mais si les sources sont en python, tu "devais" pouvoir executer ton
client bittorent sans pour autant le compiler et l'installer.
0
Rejoignez-nous