History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SRC-442
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Kumar McMillan
Votes: 1
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Selenium Remote Control

Add setup.py to Python client to allow distribution

Created: 03/Mar/08 05:51 PM   Updated: 12/Aug/08 05:35 PM
Component/s: Client Driver - Python
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Text File selenium-rc-setup-py.patch (1.0 kb)



 Description  « Hide
The easiest way to install Python modules is to use Python's builtin distribution module "distutils." One does this by creating a file named setup.py that imports a setup() function. Selenium should be installed this way. The end user can run "python setup.py install" and from that point forward can say "from selenium import selenium" from any script to use the selenium module. I have created for you a minimal setup.py file that utilizes distutils module or the more advanced, but not built-in setuptools module. The script will silently fallback to the built-in distutils when setuptools is not found.

Some ehancements are needed: you will probably want to generate this from your build task so that the version string can be dynamically populated. You also may want to fill in author names, long description, etc.

[I am hoping this form lets me submit the patch after creating the ticket]

let me know if you have any questions.

 All   Comments   Work Log   Change History      Sort Order:
Kumar McMillan - 03/Mar/08 05:53 PM
adds a setup.py to the Selenium Python client dir