Merge branch 'python_files' into 'master'

Resolve debsums errors

Use `--compile` flag to compile `.py` files into `.pyc` during package build thus avoiding debsums errors. To use this flag pip update was needed so pip is updated to the latest version.

Also skip adding DEBIAN directory to the md5sums file to remove warnings about files missing from the package.

Fixes #534

See merge request !580
This commit is contained in:
Marin Jankovski 2016-01-05 14:09:08 +00:00
commit b131e0fc05
3 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,7 @@ GIT
GIT
remote: https://gitlab.com/gitlab-org/omnibus.git
revision: a20b6cad63d08b5a465362e4f34ac49dbe6f8100
revision: 139f3c33b86214f02d4381ba4b327374f54a666b
branch: gitlab_omnibus
specs:
omnibus (5.0.0)

View File

@ -50,6 +50,7 @@ override :rubygems, version: 'v2.5.1'
override :'chef-gem', version: '12.5.1'
override :cacerts, version: '2015.10.28', source: { md5: '6f41fb0f0c4b4695c2a6296892278141' }
override :openssl, version: '1.0.1q', source: { url: 'https://www.openssl.org/source/openssl-1.0.1q.tar.gz', md5: '54538d0cdcb912f9bc2b36268388205e' }
override :pip, version: '7.1.2', source: { md5: '3823d2343d9f3aaab21cf9c917710196' }
# Openssh needs to be installed
runtime_dependency "openssh-server"

View File

@ -25,5 +25,5 @@ dependency "python"
build do
env = with_standard_compiler_flags(with_embedded_path)
command "#{install_dir}/embedded/bin/pip install --build . docutils==#{version}", env: env
command "#{install_dir}/embedded/bin/pip install --compile --build . docutils==#{version}", env: env
end