
| Key: |
SRC-442
|
| Type: |
Improvement
|
| Status: |
Open
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Kumar McMillan
|
| Votes: |
1
|
| Watchers: |
3
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
File Attachments:
|
1.
selenium-rc-setup-py.patch (1.0 kb)
|
|
|
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.
|
|
Description
|
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. |
Show » |
|