New submission from shiyao.ma:

The existing way of working on roundup is:
1. modify the source
2. install the source
3. check the result
4. jummp back to 1.

Instead, this patch puts the executables generated from installation directly 
into a bin folder. So installation process is not needed. Invoking the scripts 
in the bin folder is fair enough.

Especially, this greatly simplifies and benefits the docker usage.

----------
files: bins.patch
messages: 2967
nosy: ezio.melotti, introom
priority: feature
status: unread
title: Develop roundup without installing

_______________________________________________________
PSF Meta Tracker <metatrac...@psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue567>
_______________________________________________________
diff --git a/bin/roundup-admin b/bin/roundup-admin
new file mode 100755
--- /dev/null
+++ b/bin/roundup-admin
@@ -0,0 +1,10 @@
+#! /usr/bin/env python
+
+import os.path as osp
+roundup_path = osp.realpath(osp.join(osp.dirname(__file__), '../'))
+
+import sys
+sys.path.append(roundup_path)
+
+from roundup.scripts.roundup_admin import run
+run()
diff --git a/bin/roundup-demo b/bin/roundup-demo
new file mode 100755
--- /dev/null
+++ b/bin/roundup-demo
@@ -0,0 +1,10 @@
+#! /usr/bin/env python
+
+import os.path as osp
+roundup_path = osp.realpath(osp.join(osp.dirname(__file__), '../'))
+
+import sys
+sys.path.append(roundup_path)
+
+from roundup.scripts.roundup_demo import run
+run()
diff --git a/bin/roundup-gettext b/bin/roundup-gettext
new file mode 100755
--- /dev/null
+++ b/bin/roundup-gettext
@@ -0,0 +1,10 @@
+#! /usr/bin/env python
+
+import os.path as osp
+roundup_path = osp.realpath(osp.join(osp.dirname(__file__), '../'))
+
+import sys
+sys.path.append(roundup_path)
+
+from roundup.scripts.roundup_gettext import run
+run()
diff --git a/bin/roundup-mailgw b/bin/roundup-mailgw
new file mode 100755
--- /dev/null
+++ b/bin/roundup-mailgw
@@ -0,0 +1,10 @@
+#! /usr/bin/env python
+
+import os.path as osp
+roundup_path = osp.realpath(osp.join(osp.dirname(__file__), '../'))
+
+import sys
+sys.path.append(roundup_path)
+
+from roundup.scripts.roundup_mailgw import run
+run()
diff --git a/bin/roundup-server b/bin/roundup-server
new file mode 100755
--- /dev/null
+++ b/bin/roundup-server
@@ -0,0 +1,10 @@
+#! /usr/bin/env python
+
+import os.path as osp
+roundup_path = osp.realpath(osp.join(osp.dirname(__file__), '../'))
+
+import sys
+sys.path.append(roundup_path)
+
+from roundup.scripts.roundup_server import run
+run()
diff --git a/bin/roundup-xmlrpc-server b/bin/roundup-xmlrpc-server
new file mode 100755
--- /dev/null
+++ b/bin/roundup-xmlrpc-server
@@ -0,0 +1,10 @@
+#! /usr/bin/env python
+
+import os.path as osp
+roundup_path = osp.realpath(osp.join(osp.dirname(__file__), '../'))
+
+import sys
+sys.path.append(roundup_path)
+
+from roundup.scripts.roundup_xmlrpc_server import run
+run()
_______________________________________________
Tracker-discuss mailing list
Tracker-discuss@python.org
https://mail.python.org/mailman/listinfo/tracker-discuss

Reply via email to