mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-10-31 22:05:58 +00:00
Package PyPI dependencies right into our source package
This commit is contained in:
parent
46f8984bdc
commit
7ba2e38cd6
@ -19,8 +19,14 @@ if [ "$(uname)" == "Darwin" ]; then
|
|||||||
pip install -r requirements-osx.txt
|
pip install -r requirements-osx.txt
|
||||||
else
|
else
|
||||||
python3 -c "import PyQt5" >/dev/null 2>&1 || { echo >&2 "PyQt 5.1+ required. Install it and try again. Aborting"; exit 1; }
|
python3 -c "import PyQt5" >/dev/null 2>&1 || { echo >&2 "PyQt 5.1+ required. Install it and try again. Aborting"; exit 1; }
|
||||||
|
if [ -d "deps" ]; then
|
||||||
|
# We have a collection of dependencies in our source package. We might as well use it instead
|
||||||
|
# of downloading it from PyPI.
|
||||||
|
pip install --no-index --find-links=deps -r requirements.txt
|
||||||
|
else
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Bootstrapping complete! You can now configure, build and run dupeGuru with:"
|
echo "Bootstrapping complete! You can now configure, build and run dupeGuru with:"
|
||||||
echo ". env/bin/activate && python configure.py && python build.py && python run.py"
|
echo ". env/bin/activate && python configure.py && python build.py && python run.py"
|
||||||
|
@ -153,10 +153,17 @@ def package_arch(edition):
|
|||||||
shutil.copy(op.join('images', ed('dg{}_logo_128.png')), srcpath)
|
shutil.copy(op.join('images', ed('dg{}_logo_128.png')), srcpath)
|
||||||
|
|
||||||
def package_source_tgz(edition):
|
def package_source_tgz(edition):
|
||||||
|
if not op.exists('deps'):
|
||||||
|
print("Downloading PyPI dependencies")
|
||||||
|
print_and_do('pip install --download=deps -r requirements.txt')
|
||||||
|
print("Creating git archive")
|
||||||
app_version = get_module_version('core_{}'.format(edition))
|
app_version = get_module_version('core_{}'.format(edition))
|
||||||
name = 'dupeguru-{}-src-{}.tar.gz'.format(edition, app_version)
|
name = 'dupeguru-{}-src-{}.tar'.format(edition, app_version)
|
||||||
dest = op.join('build', name)
|
dest = op.join('build', name)
|
||||||
print_and_do('git archive -o {} HEAD'.format(dest))
|
print_and_do('git archive -o {} HEAD'.format(dest))
|
||||||
|
print("Adding dependencies and wrapping up")
|
||||||
|
print_and_do('tar -rf {} deps'.format(dest))
|
||||||
|
print_and_do('gzip {}'.format(dest))
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
|
Loading…
Reference in New Issue
Block a user