[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH v3 7/9] support/scripts: make uk-trace installable



Now it is possible to install uk-trace in your local virtual
environment. For example:
   python3 -m venv env
   . env/bin/activate
   cd support/scripts/uk_trace
   pip install --upgrade pip setuptools wheel
   pip install --editable .
   deactivate

All the dependencies will be installed in the 'env' folder, not to
your machine. And you do not need to enter your virtual environment,
you can call directly:

   env/bin/uk-trace

Signed-off-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx>
---
 .gitignore                        |  1 +
 support/scripts/uk_trace/setup.py | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 support/scripts/uk_trace/setup.py

diff --git a/.gitignore b/.gitignore
index 17908b50..09e4ba81 100644
--- a/.gitignore
+++ b/.gitignore
@@ -34,3 +34,4 @@ GTAGS
 # cscope files
 cscope.*
 ncscope.*
+support/scripts/uk_trace/uk_trace.egg-info/
diff --git a/support/scripts/uk_trace/setup.py 
b/support/scripts/uk_trace/setup.py
new file mode 100644
index 00000000..3d542d02
--- /dev/null
+++ b/support/scripts/uk_trace/setup.py
@@ -0,0 +1,14 @@
+from setuptools import setup
+
+setup(
+    name='uk_trace',
+    version='0.1',
+    scripts=['trace.py'],
+    install_requires=[
+        'Click', 'tabulate',
+    ],
+    entry_points='''
+        [console_scripts]
+        uk-trace=trace:cli
+    ''',
+)
-- 
2.19.2


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.