Форум → Программирование → Python → Установка mod_python для разработки веб-приложений на Python
Установка mod_python для разработки веб-приложений на Python
Страницы: ← Предыдущая страница →
-
-
Авг. 29, 2009, 3:20 д.п., спустя 27 минут 15 секунд
все ли я правельно делаю?
в setup.py закинулfrom distutils.core import setup
import py2exe
setup(console=['hello.py'])
в hello.py
print "Hello World!"
в консоли пишу python e:\setup.py install
все прально?
пишетE:\actPython26\lib\site-packages\py2exe\build_exe.py:16: DeprecationWarning: th
sets module is deprecated
import sets
running install
running build
running install_egg_info
Removing E:\actPython26\Lib\site-packages\UNKNOWN-0.0.0-py2.6.egg-info
Writing E:\actPython26\Lib\site-packages\UNKNOWN-0.0.0-py2.6.egg-info -
Авг. 29, 2009, 3:34 д.п., спустя 13 минут 21 секунду
Mr.Pihto, вроде все правильно… дай сырец сценария твоего
и кстати у меня python 2.5 и соответствующий py2exehttps://smappi.org/ - платформа по созданию API на все случаи жизни -
-
Авг. 29, 2009, 11:19 д.п., спустя 7 часов 23 минуты 48 секунд
Mr.Pihto, сырец == сорец == source
http://ru.wikipedia.org/wiki/%D0%9A%D0%BE%D0%BC%D0%BF%D1%8C%D1%8E%D1%82%D0%B5%D1%80%D0%BD%D1%8B%D0%B9_%D1%81%D0%BB%D0%B5%D0%BD%D0%B3Спустя 40 сек.в аттаче
ок, только я просил один… ну да ладно…https://smappi.org/ - платформа по созданию API на все случаи жизни -
Авг. 29, 2009, 11:26 д.п., спустя 6 минут 21 секунду
Все нормально собралось!
C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2>python setup.py py2exe
running py2exe
creating C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\build
creating C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\build\bdist.win32
creating C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\build\bdist.win32\winexe
creating C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\build\bdist.win32\winexe\collect-2.5
creating C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\build\bdist.win32\winexe\bundle-2.5
creating C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\build\bdist.win32\winexe\temp
creating C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\dist
*** searching for required modules ***
*** parsing results ***
creating python loader for extension 'unicodedata' (C:\Webserver\usr\python25\DLLs\unicodedata.pyd -> unicodedata.pyd)
creating python loader for extension 'bz2' (C:\Webserver\usr\python25\DLLs\bz2.pyd -> bz2.pyd)
*** finding dlls needed ***
*** create binaries ***
*** byte compile python files ***
byte-compiling C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\build\bdist.win32\winexe\temp\bz2.py to bz2.pyc
byte-compiling C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\build\bdist.win32\winexe\temp\unicodedata.py to unico
dedata.pyc
byte-compiling C:\Webserver\usr\python25\lib\StringIO.py to StringIO.pyc
byte-compiling C:\Webserver\usr\python25\lib\UserDict.py to UserDict.pyc
byte-compiling C:\Webserver\usr\python25\lib\atexit.py to atexit.pyc
byte-compiling C:\Webserver\usr\python25\lib\base64.py to base64.pyc
byte-compiling C:\Webserver\usr\python25\lib\codecs.py to codecs.pyc
byte-compiling C:\Webserver\usr\python25\lib\copy.py to copy.pyc
byte-compiling C:\Webserver\usr\python25\lib\copy_reg.py to copy_reg.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\__init__.py to encodings\__init__.pyc
creating C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\build\bdist.win32\winexe\collect-2.5\encodings
byte-compiling C:\Webserver\usr\python25\lib\encodings\aliases.py to encodings\aliases.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\ascii.py to encodings\ascii.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\base64_codec.py to encodings\base64_codec.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\big5.py to encodings\big5.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\big5hkscs.py to encodings\big5hkscs.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\bz2_codec.py to encodings\bz2_codec.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\charmap.py to encodings\charmap.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp037.py to encodings\cp037.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp1006.py to encodings\cp1006.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp1026.py to encodings\cp1026.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp1140.py to encodings\cp1140.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp1250.py to encodings\cp1250.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp1251.py to encodings\cp1251.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp1252.py to encodings\cp1252.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp1253.py to encodings\cp1253.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp1254.py to encodings\cp1254.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp1255.py to encodings\cp1255.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp1256.py to encodings\cp1256.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp1257.py to encodings\cp1257.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp1258.py to encodings\cp1258.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp424.py to encodings\cp424.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp437.py to encodings\cp437.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp500.py to encodings\cp500.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp737.py to encodings\cp737.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp775.py to encodings\cp775.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp850.py to encodings\cp850.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp852.py to encodings\cp852.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp855.py to encodings\cp855.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp856.py to encodings\cp856.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp857.py to encodings\cp857.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp860.py to encodings\cp860.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp861.py to encodings\cp861.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp862.py to encodings\cp862.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp863.py to encodings\cp863.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp864.py to encodings\cp864.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp865.py to encodings\cp865.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp866.py to encodings\cp866.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp869.py to encodings\cp869.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp874.py to encodings\cp874.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp875.py to encodings\cp875.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp932.py to encodings\cp932.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp949.py to encodings\cp949.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\cp950.py to encodings\cp950.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\euc_jis_2004.py to encodings\euc_jis_2004.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\euc_jisx0213.py to encodings\euc_jisx0213.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\euc_jp.py to encodings\euc_jp.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\euc_kr.py to encodings\euc_kr.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\gb18030.py to encodings\gb18030.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\gb2312.py to encodings\gb2312.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\gbk.py to encodings\gbk.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\hex_codec.py to encodings\hex_codec.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\hp_roman8.py to encodings\hp_roman8.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\hz.py to encodings\hz.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\idna.py to encodings\idna.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso2022_jp.py to encodings\iso2022_jp.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso2022_jp_1.py to encodings\iso2022_jp_1.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso2022_jp_2.py to encodings\iso2022_jp_2.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso2022_jp_2004.py to encodings\iso2022_jp_2004.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso2022_jp_3.py to encodings\iso2022_jp_3.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso2022_jp_ext.py to encodings\iso2022_jp_ext.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso2022_kr.py to encodings\iso2022_kr.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_1.py to encodings\iso8859_1.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_10.py to encodings\iso8859_10.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_11.py to encodings\iso8859_11.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_13.py to encodings\iso8859_13.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_14.py to encodings\iso8859_14.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_15.py to encodings\iso8859_15.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_16.py to encodings\iso8859_16.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_2.py to encodings\iso8859_2.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_3.py to encodings\iso8859_3.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_4.py to encodings\iso8859_4.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_5.py to encodings\iso8859_5.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_6.py to encodings\iso8859_6.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_7.py to encodings\iso8859_7.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_8.py to encodings\iso8859_8.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\iso8859_9.py to encodings\iso8859_9.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\johab.py to encodings\johab.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\koi8_r.py to encodings\koi8_r.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\koi8_u.py to encodings\koi8_u.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\latin_1.py to encodings\latin_1.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\mac_arabic.py to encodings\mac_arabic.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\mac_centeuro.py to encodings\mac_centeuro.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\mac_croatian.py to encodings\mac_croatian.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\mac_cyrillic.py to encodings\mac_cyrillic.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\mac_farsi.py to encodings\mac_farsi.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\mac_greek.py to encodings\mac_greek.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\mac_iceland.py to encodings\mac_iceland.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\mac_latin2.py to encodings\mac_latin2.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\mac_roman.py to encodings\mac_roman.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\mac_romanian.py to encodings\mac_romanian.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\mac_turkish.py to encodings\mac_turkish.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\mbcs.py to encodings\mbcs.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\palmos.py to encodings\palmos.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\ptcp154.py to encodings\ptcp154.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\punycode.py to encodings\punycode.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\quopri_codec.py to encodings\quopri_codec.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\raw_unicode_escape.py to encodings\raw_unicode_escape.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\rot_13.py to encodings\rot_13.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\shift_jis.py to encodings\shift_jis.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\shift_jis_2004.py to encodings\shift_jis_2004.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\shift_jisx0213.py to encodings\shift_jisx0213.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\string_escape.py to encodings\string_escape.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\tis_620.py to encodings\tis_620.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\undefined.py to encodings\undefined.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\unicode_escape.py to encodings\unicode_escape.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\unicode_internal.py to encodings\unicode_internal.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\utf_16.py to encodings\utf_16.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\utf_16_be.py to encodings\utf_16_be.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\utf_16_le.py to encodings\utf_16_le.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\utf_7.py to encodings\utf_7.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\utf_8.py to encodings\utf_8.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\utf_8_sig.py to encodings\utf_8_sig.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\uu_codec.py to encodings\uu_codec.pyc
byte-compiling C:\Webserver\usr\python25\lib\encodings\zlib_codec.py to encodings\zlib_codec.pyc
byte-compiling C:\Webserver\usr\python25\lib\getopt.py to getopt.pyc
byte-compiling C:\Webserver\usr\python25\lib\linecache.py to linecache.pyc
byte-compiling C:\Webserver\usr\python25\lib\macpath.py to macpath.pyc
byte-compiling C:\Webserver\usr\python25\lib\ntpath.py to ntpath.pyc
byte-compiling C:\Webserver\usr\python25\lib\os.py to os.pyc
byte-compiling C:\Webserver\usr\python25\lib\os2emxpath.py to os2emxpath.pyc
byte-compiling C:\Webserver\usr\python25\lib\popen2.py to popen2.pyc
byte-compiling C:\Webserver\usr\python25\lib\posixpath.py to posixpath.pyc
byte-compiling C:\Webserver\usr\python25\lib\quopri.py to quopri.pyc
byte-compiling C:\Webserver\usr\python25\lib\re.py to re.pyc
byte-compiling C:\Webserver\usr\python25\lib\repr.py to repr.pyc
byte-compiling C:\Webserver\usr\python25\lib\sre.py to sre.pyc
byte-compiling C:\Webserver\usr\python25\lib\sre_compile.py to sre_compile.pyc
byte-compiling C:\Webserver\usr\python25\lib\sre_constants.py to sre_constants.pyc
byte-compiling C:\Webserver\usr\python25\lib\sre_parse.py to sre_parse.pyc
byte-compiling C:\Webserver\usr\python25\lib\stat.py to stat.pyc
byte-compiling C:\Webserver\usr\python25\lib\string.py to string.pyc
byte-compiling C:\Webserver\usr\python25\lib\stringprep.py to stringprep.pyc
byte-compiling C:\Webserver\usr\python25\lib\struct.py to struct.pyc
byte-compiling C:\Webserver\usr\python25\lib\traceback.py to traceback.pyc
byte-compiling C:\Webserver\usr\python25\lib\types.py to types.pyc
byte-compiling C:\Webserver\usr\python25\lib\warnings.py to warnings.pyc
*** copy extensions ***
copying C:\Webserver\usr\python25\DLLs\bz2.pyd -> C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\dist
copying C:\Webserver\usr\python25\DLLs\unicodedata.pyd -> C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\dist
*** copy dlls ***
copying C:\Webserver\usr\python25\w9xpopen.exe -> C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\dist
copying C:\WINDOWS\system32\MSVCR71.dll -> C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\dist
copying C:\WINDOWS\system32\python25.dll -> C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\dist
setting sys.winver for 'C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2\dist\python25.dll' to 'py2exe'
copying C:\Webserver\usr\python25\lib\site-packages\py2exe\run.exe -> C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test
2\dist\hello.exe
*** binary dependencies ***
Your executable(s) also depend on these dlls which are not included,
you may or may not need to distribute them.
Make sure you have the license if you distribute any of them, and
make sure you don't distribute files belonging to the operating system.
ADVAPI32.dll - C:\WINDOWS\system32\ADVAPI32.dll
USER32.dll - C:\WINDOWS\system32\USER32.dll
SHELL32.dll - C:\WINDOWS\system32\SHELL32.dll
KERNEL32.dll - C:\WINDOWS\system32\KERNEL32.dll
C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2>
C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2>dir
Том в устройстве C имеет метку C
Серийный номер тома: 7CB0-274F
Содержимое папки C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2
29.08.2009 11:23 <DIR> .
29.08.2009 11:23 <DIR> ..
29.08.2009 11:23 <DIR> build
29.08.2009 11:23 <DIR> dist
29.08.2009 11:22 20 hello.py
29.08.2009 11:22 76 setup.py
2 файлов 96 байт
4 папок 550 349 824 байт свободно
C:\Documents and Settings\adw0rd\workspace\py_dev_test\src\py2exe_test2>dist\hello.exe
Hello World!Спустя 54 сек.hello.pyprint "Hello World!"
setup.py
from distutils.core import setup
import py2exe
setup(console=['hello.py'])https://smappi.org/ - платформа по созданию API на все случаи жизни -
-
Авг. 29, 2009, 3 п.п., спустя 8 минут 41 секунду
Rushter, это интерпритатор весит 5 метров (который встраивается в exe). думаю, еще както можно сжимать -
Авг. 29, 2009, 3:16 п.п., спустя 16 минут 16 секунд
ужас какой…
И хелло ворд будет весить 5 метров :)https://smappi.org/ - платформа по созданию API на все случаи жизни -
Авг. 29, 2009, 4:58 п.п., спустя 1 час 42 минуты 3 секунды
Я это и имел ввиду.
Rushter, это интерпритатор весит 5 метров (который встраивается в exe). думаю, еще както можно сжимать -
Авг. 29, 2009, 8:01 п.п., спустя 3 часа 2 минуты 29 секунд
adw0rd, ок. знач поставлю питон 2.5 попробую, спс)
Страницы: ← Предыдущая страница →
Пожалуйста, авторизуйтесь, чтобы написать комментарий!