Mercurial > p > roundup > code
annotate website/www/code.txt @ 7695:2be7a8f66ea7
fix: windows install using pip mislocates share directory
The setup code that tries to make the share install path absolute
prependeds something like:
c:\program files\python_venv
to the paths. The equivalent on linux is recognized as an absolute
path. On windows this is treated oddly. This resulted in
the share files being placed in:
c:\program files\python_venv\Lib\site-packages\program files\python_venv\share
Roundup was unable to find the files there. On windows (where the
platform starts with 'win') don't make the path absolute. This puts
share in:
c:\program files\python_venv\Lib\share
and Roundup finds them.
The translations and templates are found by the roundup-server.
The docs are also installed under the share directory. The man pages
are not installed as windows doesn't have groff to format the source
documents.
This is the second fix from issues getting Roundup running on windows
discussed on mailing list by Simon Eigeldinger.
Thread starts with:
https://sourceforge.net/p/roundup/mailman/message/41557096/
subject: Installing Roundup on Windows 2023-10-05.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 05 Nov 2023 23:01:29 -0500 |
| parents | 6f5054751fb6 |
| children | 141225d2981e |
| rev | line source |
|---|---|
|
7048
6f5054751fb6
Update meta description. Also fix test command in code.txt.
John Rouillard <rouilj@ieee.org>
parents:
6370
diff
changeset
|
1 .. meta:: |
|
6f5054751fb6
Update meta description. Also fix test command in code.txt.
John Rouillard <rouilj@ieee.org>
parents:
6370
diff
changeset
|
2 :description: |
|
6f5054751fb6
Update meta description. Also fix test command in code.txt.
John Rouillard <rouilj@ieee.org>
parents:
6370
diff
changeset
|
3 Information for developers of Roundup. Including directions on |
|
6f5054751fb6
Update meta description. Also fix test command in code.txt.
John Rouillard <rouilj@ieee.org>
parents:
6370
diff
changeset
|
4 checking code from repository, how to run demo mode and |
|
6f5054751fb6
Update meta description. Also fix test command in code.txt.
John Rouillard <rouilj@ieee.org>
parents:
6370
diff
changeset
|
5 execute tests. |
|
6f5054751fb6
Update meta description. Also fix test command in code.txt.
John Rouillard <rouilj@ieee.org>
parents:
6370
diff
changeset
|
6 |
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
7 Code |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
8 ==== |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
9 |
|
5018
7cfd30cc8cfa
website: Reword code section, explain are why using SF and
anatoly techtonik <techtonik@gmail.com>
parents:
5017
diff
changeset
|
10 Project history is maintained in `CHANGES.txt <https://sourceforge.net/p/roundup/code/ci/tip/tree/CHANGES.txt>`_ |
|
7cfd30cc8cfa
website: Reword code section, explain are why using SF and
anatoly techtonik <techtonik@gmail.com>
parents:
5017
diff
changeset
|
11 file in code repository of Roundup, which can also be viewed online |
|
6370
45e8d10a9609
Update links in documentation
John Rouillard <rouilj@ieee.org>
parents:
5058
diff
changeset
|
12 through SourceForge `web interface <https://sourceforge.net/p/roundup/code/ci/default/tree/>`_. |
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
13 |
|
5057
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
14 Get sources |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
15 ----------- |
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
16 |
|
5018
7cfd30cc8cfa
website: Reword code section, explain are why using SF and
anatoly techtonik <techtonik@gmail.com>
parents:
5017
diff
changeset
|
17 Official **read-only access** to Mercurial repository is provided through :: |
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
18 |
|
5017
98344ba5e157
website: Update "getting code" documentation
anatoly techtonik <techtonik@gmail.com>
parents:
4829
diff
changeset
|
19 hg clone http://hg.code.sf.net/p/roundup/code roundup |
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
20 |
|
5018
7cfd30cc8cfa
website: Reword code section, explain are why using SF and
anatoly techtonik <techtonik@gmail.com>
parents:
5017
diff
changeset
|
21 **Read/write access** requires SSH password or SSH key |
|
7cfd30cc8cfa
website: Reword code section, explain are why using SF and
anatoly techtonik <techtonik@gmail.com>
parents:
5017
diff
changeset
|
22 authorization (see `SourceForge.net docs for details |
|
4775
d00a3ede67e4
Changing www/code.txt towards new SF paths.
Bernhard Reiter <bernhard@intevation.de>
parents:
4596
diff
changeset
|
23 <https://sourceforge.net/p/forge/documentation/Mercurial/>`_) :: |
|
4552
68d647848ffc
nicer formatting
Richard Jones <richard@users.sourceforge.net>
parents:
4549
diff
changeset
|
24 |
|
5017
98344ba5e157
website: Update "getting code" documentation
anatoly techtonik <techtonik@gmail.com>
parents:
4829
diff
changeset
|
25 hg clone ssh://USERNAME@hg.code.sf.net/p/roundup/code roundup |
|
4552
68d647848ffc
nicer formatting
Richard Jones <richard@users.sourceforge.net>
parents:
4549
diff
changeset
|
26 |
|
5017
98344ba5e157
website: Update "getting code" documentation
anatoly techtonik <techtonik@gmail.com>
parents:
4829
diff
changeset
|
27 You also need to be added as a Roundup developer for write access - ask |
|
98344ba5e157
website: Update "getting code" documentation
anatoly techtonik <techtonik@gmail.com>
parents:
4829
diff
changeset
|
28 for it on the :doc:`roundup-devel list <contact>`. |
|
5057
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
29 |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
30 Run demo |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
31 -------- |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
32 |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
33 Roundup doesn't need any dependencies and works out of the box. Demo |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
34 is accessible at http://localhost:8917/demo/ by default :: |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
35 |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
36 cd roundup |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
37 python demo.py |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
38 |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
39 Execute tests |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
40 ------------- |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
41 :: |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
42 |
|
7048
6f5054751fb6
Update meta description. Also fix test command in code.txt.
John Rouillard <rouilj@ieee.org>
parents:
6370
diff
changeset
|
43 python -m pytest test |
|
5057
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
44 |
|
5058
c36ad0ba6aa3
www: Fix link to README.txt
anatoly techtonik <techtonik@gmail.com>
parents:
5057
diff
changeset
|
45 See repository `README.txt <https://sourceforge.net/p/roundup/code/ci/tip/tree/README.txt>`_ |
|
5057
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
46 for more info. |
