在virtualenvs中简化secretstorage的设置
SecretStorage-Setup的Python项目详细描述
secretstorage安装程序是一个小型项目和命令行实用程序,用于简化安装 在一个virtualenv中的SecretStorage。它的创建主要是为了方便开发人员 使用keyring中的secretstorage后端。
用法
安装
此软件包应安装在virtualenv中:
# I'm using vex to create and activate virtualenv. You can use whatever tool you are used to. $ vex -m example $ pip install SecretStorage-Setup
状态:缺少依赖项
如果您的系统python中没有安装所有依赖项,您可能会看到 例如:
$ ss-setup status dbus package...not installed for this python Crypto package...not installed for this python secretstorage package...not installed for this python
在这种情况下,您应该看到下面的“依赖项”以获得进一步的帮助。此外,您还可以使用
-v
从status命令获取更多信息:
$ ss-setup status -v dbus package...not installed for this python Crypto package...not installed for this python secretstorage package...not installed for this python Troubleshooting messages follow: <...snip...>
链接系统依赖项
因为secretstorage依赖项比安装更容易使用系统工具安装
在virtualenv中,link
命令将使用符号链接设置virtualenv以指向
系统包:
$ ss-setup status dbus package...needs linking into virtualenv Crypto package...needs linking into virtualenv secretstorage package...needs linking into virtualenv $ ss-setup link linking successful, run the status command to verify $ ss-setup status dbus package...ready Crypto package...ready secretstorage package...ready
依赖关系
SecretStorage依赖于:
debian/ubuntu系统python
如果运行的是基于debian的系统,则可以在系统中安装所有需要的依赖项 Python如下:
$ sudo apt-get install python-dbus python-crypto python3-dbus python3-crypto
手动安装的python
如果已将python安装到自定义位置,则需要构建dbu并安装 手工包装:
# Assuming you have installed your Python in /opt/python34/ and `python3.4` is linked to the # Python binary correctly. $ sudo apt-get install libdbus-1-dev libdbus-glib-1-dev $ wget http://dbus.freedesktop.org/releases/dbus-python/dbus-python-1.2.0.tar.gz $ tar -xzf dbus-python-1.2.0.tar.gz $ cd dbus-python-1.2.0 $ PYTHON=python3.4 ./configure --prefix=/opt/python34 $ make $ sudo make install $ sudo /opt/python34/bin/pip install pycrypto secretstorage
问题与讨论
请将问题、评论、错误、功能请求等直接发送到: https://github.com/level12/secretstorage-setup/issues
当前状态
目前在ubuntu 14.04上测试:
- ubuntu python 2.7
- ubuntu python 3.4.0
- 手动安装python 3.4.3
欢迎提出问题和请求。
更改日志
0.1.1发布日期:2015-04-07
- 修复使用ubuntu python 2.7时的错误
0.1.0发布日期:2015-04-07
- 初始版本