You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-16Lines changed: 37 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -58,57 +58,78 @@ While that looks simple, the `make pex` command will try to download and install
58
58
We pre-package releases on Ubuntu, so the advice here is definitely accurate for that platform, but something similar should work for most other Debian variants.
59
59
60
60
* Make sure you have Python 2.7.5 or above; earlier versions will give you InsecurePlatformWarning messages due to older SSL components.
61
+
* For Ubuntu 16.04, an easy way to get python 3.6 is from the Jonathan F archive, do:
62
+
```bash
63
+
sudo add-apt-repository ppa:jonathonf/python-3.6
64
+
sudo apt-get update
65
+
sudo pat-get install -y python3.6
66
+
```
61
67
* Take all security updates before you start.
62
68
* You don't need a GUI on the platform, as the entire build can be done from the command line. Server variants are fine.
63
69
* You will need a standard C development environment to build a variety of the modules that use native extensions. Use this command to get one:
64
70
```bash
65
-
sudo apt-get install build-essential
71
+
sudo apt-get install -y build-essential
66
72
```
67
73
* Make sure you use the system package manager to install the following packages (and their dependencies):
68
-
* python-dev (or python3-dev if you are doing python3 builds)
69
-
* python-pip (not needed forpython3)
70
-
* python-virtualenv (not needed forpython3)
74
+
* python-dev (or python3.6-dev if you are doing python3 builds)
75
+
* python-pip (or python3-pip if you are doing python3 builds)
76
+
* python-virtualenv (or python3-virtualenv if you are doing python3 builds)
71
77
* pkg-config
72
78
* libssl-dev
73
79
* libldap2-dev
74
80
* libsasl2-dev
75
-
*libdbus-glib-1-dev
81
+
* python-dbus-devel
76
82
* libffi-dev
77
-
* For convenience, you can copy and paste this command:
83
+
* For convenience, you can copy and paste these commands (choosing from the first two based on your python version):
* You don't need the python-dbus package to _build_ user-sync, but you will need it to run user-sync if you use the dbus secure store for your credentials.
89
+
* You need the python-dbus package to _build_ user-sync, but you don't need it to *run* user-sync unless you use the dbus secure store for your credentials.
82
90
83
91
### CentOS and other RedHat variants
84
92
85
93
We pre-package releases on CentOS, so the advice here is definitely accurate for that platform, but something similar should work for most other RedHat variants.
86
94
87
95
* Make sure you have Python 2.7.5 or above; earlier versions will give you InsecurePlatformWarning messages due to older SSL components.
96
+
* You cannot build on CentOS 6, because user-sync uses python-dbus for the keyring, and python-dbus requires dbus 1.6 or greater which is not available on CentOS 6. However, you can run a CentOS 7 build on CentOS 6 as long as you are running the same build of python 3.6 or later.
97
+
* For centos6, to run builds, you will need to install python 3.6, which you can do as follows:
* You don't need a GUI on the platform, as the entire build can be done from the command line. Server variants are fine.
90
109
* You will need a standard C development environment to build a variety of the modules that use native extensions. Use this command to get one:
91
110
```bash
92
-
sudo yum group install"Development Tools"
111
+
sudo yum groupinstall -y "Development Tools"
93
112
```
94
113
* Your OS may not know about `pip` by default, although it will know about `virtualenv`. Rather than installing `pip` manually, we recommend telling your OS about the Red Hat "Extra Package for Enterprise Linux (EPEL)" package library, which on CentOS you can do with:
95
114
```bash
96
-
sudo yum install epel-release
115
+
sudo yum install -y epel-release
97
116
```
98
117
* Make sure you use the system package manager to install the following packages (and their dependencies):
99
-
* python-devel (or python3-devel, if you are doing python3 builds)
100
-
* python-pip (not needed forpython3)
101
-
* python-virtualenv (not needed forpython3)
118
+
* python-devel (or python36u-devel, if you are doing python3 builds)
119
+
* python-pip (or python36u-pip, if you are doing python3 builds)
120
+
* python-virtualenv (or python36u-virtualenv, if you are doing python3 builds)
102
121
* pkgconfig
103
122
* openssl-devel
104
123
* openldap-devel (includes sasl)
105
124
* dbus-glib-devel
125
+
* dbus-python (version 1.6 or greater, not available on CentOS 6)
106
126
* libffi-devel
107
-
* For convenience, you can copy and paste this command:
127
+
* For convenience, you can copy and paste these commands (pick among the first two based on your python version):
* You don't need the python-dbus package to _build_ user-sync, but you will need it to run user-sync if you use the dbus secure store for your credentials.
0 commit comments