Changes between Version 50 and Version 51 of WikiStart


Ignore:
Timestamp:
12/09/21 13:35:21 (3 years ago)
Author:
Wouter Pasman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v50 v51  
    169169Refer to [https://tracinsy.ewi.tudelft.nl/pubtrac/GeniusWebPythonPartiesServer#AddingorchangingaParty install new party] to deploy your party.tar.gz on the pythonpartiesserver.
    170170
     171== Using PyDev in Eclipse
     172You can also use Eclipse to develop your python parties.
     173
     174* Install PyDev. Go to Eclipse MarketPlace and search for PyDev. Click on Install and follow the instructions.
     175* Download an example project as usual in Eclipse:
     176  * Install an SVN client if you don't have one installed. Go to Eclipse MarketPlace and search for subclipse. Click on Install and follow the instructions. Also follow the javahl installation instructions. This will involve separate software as well.
     177  * Import the project:
     178    * click File/Import/SVN/Checkout Projects from SVN. Click Next,
     179    * select Create a new repository location and Next. Enter  e.g. https://tracinsy.ewi.tudelft.nl/pub/svn/GeniusWebPython/exampleparties/randomparty.
     180    * Select the root folder and Finish.
     181    * Select General/Project, Next, enter some project name "demo", Finish
     182* Create a virtual env for python
     183  * open terminal
     184  * Go the project workspace
     185  * {{{python3 -m venv venv; source venv/bin/activate; pip install -r requirements.txt}}}
     186* Set up Eclipse env
     187  * Window/Preferences/PyDev/Interpreters/Python Interpreter
     188  * New/Browse for python/pypy.exe
     189  * Browse to the venv/bin/python3 file you created
     190  * enter interpreter name, eg your project name "demo"
     191  * check also the site-packages and click OK
     192  * PyDev/Editor/Code Analysis/Mypy and check "Use Mypy?"
     193  * Apply and close
     194* Configure your project
     195  * Right click on demo project in navigator or project explorer
     196  * PyDev/Set as PyDev Project
     197  * Right click on demo project in navigator or project explorer and select "Properties"
     198  * Select PyDev/PyDev Interpreter Grammar
     199  * Select the Interpreter "demo".
     200  * Click on PyDev-PYTHONPATH
     201  * Click Add source folder and select the demo folder (the root of the demo project)
     202  * Go to PyDev/Editor/
     203
     204
     205 
     206
    171207= Stand-alone running
    172208Stand-alone running works similar as in java.