在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

  • 初始版本

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
在Java中使用BufferedReader类读取文本文件的子字符串   java如何在JSP页面上包含来自另一台服务器的动态JSP   使用单表策略的java持久化Hibernate继承映射   java报告状态失败达600秒。谋杀!报告hadoop的进展   java将字符串解析为形状   使用JTable的java ClassCastException?   java在Spring引导中关闭数据库   java Android Studio调试错误(Ubuntu)   java如何区分apache beam中KV实例中的两个键?   java将RealmObjectChangeListener添加到异步下载的RealmObject   java匹配模式之前的所有内容,包括新行和/或回车   java使用JAXB在XML中动态更改元素序列   java如何在MACOS中找到动态库(.dylib文件)的版本   Android中的java Nanohttpd服务器   java libGDX:3d动画不工作