[Twisted-Python] TAP howto: doesn't appear to cover installation
Hi, I'm reading the tap how to: http://twistedmatrix.com/documents/current/core/howto/tap.html In the conclusion, it says: • Use it from your development environment • Install it correctly and use it in deployment I can get it to work from my development environment, but I can't find anything about installing it. I'm using a fairly run-of-the-mill distribute-powered setup.py. What do I do? This package will always be installed into a site-packageless virtualenv. Ideally the virtualenv's twistd will know all about the new plugin. On a tangentially related note, my Options class is completely empty. That's not because my project has no configuration options, but simply because I invariably take them from the environment. Does that mean I'm doing it wrong? cheers lvh
On Fri, Aug 3, 2012 at 10:13 AM, Laurens Van Houtven <_@lvh.cc> wrote:
Hi,
I'm reading the tap how to: http://twistedmatrix.com/documents/current/core/howto/tap.html
In the conclusion, it says:
• Use it from your development environment • Install it correctly and use it in deployment
I can get it to work from my development environment, but I can't find anything about installing it. I'm using a fairly run-of-the-mill distribute-powered setup.py. What do I do?
Here's an example setup.py: https://github.com/dreamhost/akanda/blob/master/setup.py Note the packages and package_data parameters. Also, I refresh the plugin cache after setup. This has removed the problem of Twisted not being able to find newly installed plugins. d
This package will always be installed into a site-packageless virtualenv. Ideally the virtualenv's twistd will know all about the new plugin.
On a tangentially related note, my Options class is completely empty. That's not because my project has no configuration options, but simply because I invariably take them from the environment. Does that mean I'm doing it wrong?
cheers lvh
Le Aug 3, 2012 à 11:09 AM, Duncan McGreggor <duncan.mcgreggor@gmail.com> a écrit :
On Fri, Aug 3, 2012 at 10:13 AM, Laurens Van Houtven <_@lvh.cc> wrote:
Hi,
I'm reading the tap how to: http://twistedmatrix.com/documents/current/core/howto/tap.html
In the conclusion, it says:
• Use it from your development environment • Install it correctly and use it in deployment
I can get it to work from my development environment, but I can't find anything about installing it. I'm using a fairly run-of-the-mill distribute-powered setup.py. What do I do?
Here's an example setup.py: https://github.com/dreamhost/akanda/blob/master/setup.py
Note the packages and package_data parameters.
Also, I refresh the plugin cache after setup. This has removed the problem of Twisted not being able to find newly installed plugins.
I think that this is the following Stack Overflow question: http://stackoverflow.com/questions/7275295/how-do-i-write-a-setup-py-for-a-t... There are some issues with the answer there, as noted in the comments, but something like this needs to be in Twisted's documentation someplace, as soon as someone can agree what the right way for all the different packaging configurations you can find yourself in is. -glyph
On 04 Aug 2012, at 04:52, Glyph <glyph@twistedmatrix.com> wrote:
I think that this is the following Stack Overflow question:
http://stackoverflow.com/questions/7275295/how-do-i-write-a-setup-py-for-a-t...
Thanks!
There are some issues with the answer there, as noted in the comments, but something like this needs to be in Twisted's documentation someplace, as soon as someone can agree what the right way for all the different packaging configurations you can find yourself in is.
Sooo, never, right?
-glyph _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Fri, Aug 3, 2012 at 7:52 PM, Glyph <glyph@twistedmatrix.com> wrote:
Le Aug 3, 2012 à 11:09 AM, Duncan McGreggor <duncan.mcgreggor@gmail.com> a écrit :
On Fri, Aug 3, 2012 at 10:13 AM, Laurens Van Houtven <_@lvh.cc> wrote:
Hi,
I'm reading the tap how to: http://twistedmatrix.com/documents/current/core/howto/tap.html
In the conclusion, it says:
• Use it from your development environment • Install it correctly and use it in deployment
I can get it to work from my development environment, but I can't find anything about installing it. I'm using a fairly run-of-the-mill distribute-powered setup.py. What do I do?
Here's an example setup.py: https://github.com/dreamhost/akanda/blob/master/setup.py
Note the packages and package_data parameters.
Also, I refresh the plugin cache after setup. This has removed the problem of Twisted not being able to find newly installed plugins.
I *think* that this is the following Stack Overflow question:
http://stackoverflow.com/questions/7275295/how-do-i-write-a-setup-py-for-a-t...
That's a great link; the main solution solves several problems I had run into, but hadn't had the time to explore/debug. Now I know why... Thanks! d
There are some issues with the answer there, as noted in the comments, but something like this needs to be in Twisted's documentation someplace, as soon as someone can agree what the right way for all the different packaging configurations you can find yourself in is.
-glyph
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On 06:39 am, duncan.mcgreggor@gmail.com wrote:
On Fri, Aug 3, 2012 at 7:52 PM, Glyph <glyph@twistedmatrix.com> wrote:
Le Aug 3, 2012 à 11:09 AM, Duncan McGreggor <duncan.mcgreggor@gmail.com> a écrit :
On Fri, Aug 3, 2012 at 10:13 AM, Laurens Van Houtven <_@lvh.cc> wrote:
Hi,
I'm reading the tap how to: http://twistedmatrix.com/documents/current/core/howto/tap.html
In the conclusion, it says:
• Use it from your development environment • Install it correctly and use it in deployment
I can get it to work from my development environment, but I can't find anything about installing it. I'm using a fairly run-of-the-mill distribute-powered setup.py. What do I do?
Here's an example setup.py: https://github.com/dreamhost/akanda/blob/master/setup.py
Note the packages and package_data parameters.
Also, I refresh the plugin cache after setup. This has removed the problem of Twisted not being able to find newly installed plugins.
I *think* that this is the following Stack Overflow question:
http://stackoverflow.com/questions/7275295/how-do-i-write-a-setup-py- for-a-twistd-twisted-plugin-that-works-with-setuptools
That's a great link; the main solution solves several problems I had run into, but hadn't had the time to explore/debug. Now I know why...
Perhaps we should just add a link to that SO question to the documentation, since an actual answer is not likely to be forthcoming in the near future. Jean-Paul
Thanks!
d
There are some issues with the answer there, as noted in the comments, but something like this needs to be in Twisted's documentation someplace, as soon as someone can agree what the right way for all the different packaging configurations you can find yourself in is.
-glyph
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Sat, Aug 4, 2012 at 3:56 AM, <exarkun@twistedmatrix.com> wrote:
On 06:39 am, duncan.mcgreggor@gmail.com wrote:
On Fri, Aug 3, 2012 at 7:52 PM, Glyph <glyph@twistedmatrix.com> wrote:
Le Aug 3, 2012 à 11:09 AM, Duncan McGreggor <duncan.mcgreggor@gmail.com> a écrit :
On Fri, Aug 3, 2012 at 10:13 AM, Laurens Van Houtven <_@lvh.cc> wrote:
Hi,
I'm reading the tap how to: http://twistedmatrix.com/documents/current/core/howto/tap.html
In the conclusion, it says:
• Use it from your development environment • Install it correctly and use it in deployment
I can get it to work from my development environment, but I can't find anything about installing it. I'm using a fairly run-of-the-mill distribute-powered setup.py. What do I do?
Here's an example setup.py: https://github.com/dreamhost/akanda/blob/master/setup.py
Note the packages and package_data parameters.
Also, I refresh the plugin cache after setup. This has removed the problem of Twisted not being able to find newly installed plugins.
I *think* that this is the following Stack Overflow question:
http://stackoverflow.com/questions/7275295/how-do-i-write-a-setup-py- for-a-twistd-twisted-plugin-that-works-with-setuptools
That's a great link; the main solution solves several problems I had run into, but hadn't had the time to explore/debug. Now I know why...
Perhaps we should just add a link to that SO question to the documentation, since an actual answer is not likely to be forthcoming in the near future.
+1 d
Le Aug 3, 2012 à 11:39 PM, Duncan McGreggor <duncan.mcgreggor@gmail.com> a écrit :
I think that this is the following Stack Overflow question:
http://stackoverflow.com/questions/7275295/how-do-i-write-a-setup-py-for-a-t...
That's a great link; the main solution solves several problems I had run into, but hadn't had the time to explore/debug. Now I know why...
Thanks!
All I ask in return is that you flesh out the answer even further, if you hit and debug any further issues with the answer :). -glyph
participants (4)
-
Duncan McGreggor
-
exarkun@twistedmatrix.com
-
Glyph
-
Laurens Van Houtven