New submission from zooko <[email protected]>:
I wanted to run {{{trial}}} on Windows. I started with the Twisted 8.2.0 source distribution, and ran {{{python ./setup.py install}}}, which seemed to succeed and even printed out encouraging messages about installing {{{trial}}} and {{{twistd}}} and so forth. Then I ran {{{trial --version}}}, but it said:
{{{
'trial' is not recognized as an internal or external command, operable program or batch file.
}}}
I then installed setuptools on this Windows box and tried again, with the same result.
Then I applied the following patch to Twisted's {{{setup.py}}} and installed again. (I now have setuptools installed on this Windows system, so the "setuptools branch" of Twisted's {{{setup.py}}} is used -- this is the same thing that happens if someone runs {{{easy_install Twisted}}}.) This time when I run {{{trial}}} it executes correctly! Hooray!
{{{
>trial --version
Twisted version: 8.2.0
}}}
Patch:
{{{
--- setup.py.orig 2008-09-06 14:55:38.000000000 -0600
+++ setup.py 2009-06-11 12:53:23.453125000 -0600
@@ -89,6 +89,25 @@
setup_args['install_requires'] = requirements
setup_args['include_package_data'] = True
setup_args['zip_safe'] = False
+ setup_args['entry_points'] = {
+ 'console_scripts': [
+ 'manhole = twisted.scripts.manhole:run',
+ 'mktap = twisted.scripts.mktap:run',
+ 'pyhtmlizer = twisted.scripts.htmlizer:run',
+ 'tap2deb = twisted.scripts.tap2deb:run',
+ 'tap2rpm = twisted.scripts.tap2rpm:run',
+ 'tapconvert = twisted.scripts.tapconvert:run',
+ 'trial = twisted.scripts.trial:run',
+ 'twistd = twisted.scripts.twistd:run',
+ 'mailmail = twisted.mail.scripts.mailmail:run',
+ 'lore = twisted.lore.scripts.lore:run',
+ 'cftp = twisted.conch.scripts.cftp:run',
+ 'ckeygen = twisted.conch.scripts.ckeygen:run',
+ 'conch = twisted.conch.scripts.conch:run',
+ 'tkconch = twisted.conch.scripts.tkconch:run',
+ 'im = twisted.words.scripts.im:run',
+ ]
+ }
setup(**setup_args)
}}}
----------
Type : enhancement
Component: release management
Keywords : setuptools, win32, command-line
Priority : normal
Nosy :
----------
http://twistedmatrix.com/trac/ticket/3878
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.