Changes between Version 44 and Version 45 of TracDev/DevelopmentEnvironmentSetup
- Timestamp:
- Mar 1, 2023, 9:26:12 AM (14 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/DevelopmentEnvironmentSetup
v44 v45 27 27 === Get Python 28 28 29 On Linux , you'll usually want toinstall Python using the package manager for your distribution. For example, on a distribution utilizing the Apt package manager (Debian, Ubuntu):29 On Linux install Python using the package manager for your distribution. For example, on a distribution utilizing the Apt package manager (Debian, Ubuntu): 30 30 {{{#!sh 31 31 $ sudo apt-get install python 32 32 }}} 33 33 34 You will also need someadditional libraries:34 You will also need additional libraries: 35 35 {{{#!sh 36 36 $ sudo apt-get install python-subversion … … 45 45 === Get pip 46 46 47 You 'll already have `pip` installed with Python >= 2.7.9. If you are running an earlier version of Python, first check whether `pip` is already installed:47 You will already have `pip` installed with Python >= 2.7.9. If you are running an earlier version of Python, first check whether `pip` is already installed: 48 48 {{{#!sh 49 49 $ pip --version … … 53 53 === Get virtualenv 54 54 55 You may already have `virtualenv` installed. 55 `virtualenv` is a tool to create isolated Python environments and allows you to test out Trac code or Python code in general without risk of data loss to the rest of your computer. You may already have `virtualenv` installed: 56 56 {{{#!sh 57 57 $ virtualenv --version … … 79 79 }}} 80 80 81 You 'll see your command-line prompt has changed. That means your environment is ready for Trac.81 You will see your command-line prompt prefixed with `(pve)` or similar. That means you have entered the virtual environment and your environment is ready for Trac installation and development. 82 82 83 === Upgrade Dependencies83 === Upgrade dependencies 84 84 85 Upgrade the dependencies in your environment .85 Upgrade the dependencies in your environment: 86 86 {{{#!sh 87 87 $ pip install -U pip setuptools wheel … … 90 90 == Developing with Eclipse and !PyDev 91 91 92 If you are planning to develop using Eclipse, you should also read the [TracDev/DevelopmentWithEclipseAndPyDev Development with Eclipse and PyDev] page, after installing and configuring Trac in the next section.92 If you are planning to develop using the Eclipse IDE, you should also read the [TracDev/DevelopmentWithEclipseAndPyDev Development with Eclipse and PyDev] page, after installing and configuring Trac in the next section. 93 93 94 94 == Installing and configuring Trac … … 96 96 === Download Trac 97 97 98 You should get the Trac source code from one of the TracRepositories. For example, to checkout from Subversion using the command-line:98 Get the Trac source code from one of the TracRepositories. For example, to checkout from Subversion using the command-line: 99 99 {{{#!sh 100 100 $ svn co https://svn.edgewall.org/repos/trac/trunk/ trac-trunk … … 125 125 }}} 126 126 127 '''Note:''' Don't do this in production!127 '''Note:''' Don't do this in a production environment! 128 128 129 129 === Install the [th:TracDeveloperPlugin] (optional) … … 159 159 === Open Trac in your browser 160 160 161 Switch to your browser and go to `http://127.0.0.1:8000/` 161 Switch to your browser and go to `http://127.0.0.1:8000/`. You should see the Trac landing page. 162 162 163 163 Now do the following: … … 170 170 === Alternative frontends 171 171 172 To develop on Trac with Apache rather than the standalone `tracd`, see the [TracDev/AlternativeFrontends alternative frontends] page for information on using Apache with mod_python and mod_wsgi.172 To develop on Trac with Apache rather than the standalone `tracd`, see the [TracDev/AlternativeFrontends alternative frontends] page for information on using Apache with `mod_python` and `mod_wsgi`. 173 173 174 174 == Further guidelines