Package Details: seahub 11.0.8-1

Git Clone URL: https://aur.archlinux.org/seahub.git (read-only, click to copy)
Package Base: seahub
Description: The web frontend for seafile server
Upstream URL: https://github.com/haiwen/seahub
Licenses: Apache
Submitter: eolianoe
Maintainer: Joffrey
Last Packager: Joffrey
Votes: 7
Popularity: 0.000000
First Submitted: 2017-07-03 09:48 (UTC)
Last Updated: 2024-04-20 09:42 (UTC)

Pinned Comments

Latest Comments

« First ‹ Previous 1 .. 7 8 9 10 11 12

Joffrey commented on 2018-01-07 20:11 (UTC)

Exactly! It's now by default

virtualenv2 --no-wheel "${vitualenvpath}"

Would be good.

eolianoe commented on 2018-01-07 15:38 (UTC)

@Joffrey: updated, thanks again for the comments (--no-site-packages is deprecated from the manual of virtualenv).

Joffrey commented on 2018-01-07 12:57 (UTC) (edited on 2018-01-07 13:05 (UTC) by Joffrey)

Seahub libs is a vitualenv as much use it a maximum and add the deps in requierements, I use something similar:

[...]
license=('Apache' 'PSF' 'MIT' 'BSD')
depends=('seafile-server')
optdepends=('memcached' 'libmemcached')
makedepends=('python2-virtualenv' 'libmemcached')
[...]

prepare () {
    cd "${srcdir}/${pkgname}-${pkgver}-server"

    # Fix all script's python 2 requirement
    grep -s -l -r '#!/usr/bin/env python\b' ./ \
    | xargs sed -i -e '1 s|env python\b|env python2|'

    # Add python libs depends to requirements.txt
    {
        echo 'gunicorn'         # WSGI HTTP Server
        echo 'pylibmc'          # Required by memcached
        echo 'django-pylibmc'   # Required by memcached
    } >> "./requirements.txt"
}

@Armael python2-dateutil, and python2-qrcode are in requierements.txt your problem is elsewher.

PS: @eolianoe pip2 is installed with virtualenv deployement, you can remove it of makedepends and use:

package() {
    [...]
    virtualenv2 --no-site-packages --no-wheel "${virtualenvpath}"    

    # Activates the VirtualEnv
    source "${virtualenvpath}/bin/activate"

    # Install all requirements
    pip2 install --isolated --no-compile -r "./requirements.txt"
    [...]
}

--no-site-packages is an option more lighter than --system-site-packages and wheel is useless..

Happy New Year @all :)

Armael commented on 2018-01-05 18:56 (UTC)

Two dependencies seems to be missing: python2-dateutil, and python2-qrcode. The first one is caught by "seafile-admin setup", but the second one isn't, resulting in an uninformative "500 internal server error" message.

Joffrey commented on 2017-10-10 21:20 (UTC) (edited on 2017-12-24 14:17 (UTC) by Joffrey)

For use Memchached you must have django-pylibmc (python2-django-pylibmc) library.

Edit: Otherly you can add 'pylibmc' 'django-pylibmc' installation via pip2 in package function, 'pylibmc' require 'libmemcached' depend.