Mercurial > libervia-web
annotate src/__init__.py @ 1086:2566f17a0e59
server (setup): New setup.py compatible with archlinux PKGBUILD.
This file use a new "arch" option in LIBERVIA_INSTALL environment variable (which is set when libervia is installed with PKGBUILD.
This setup.py solves the following issues:
- os.symlink(os.path.dirname(libervia.__file__), os.path.join(tmp_dir,"libervia")) fails with PKGBUILD because the module libervia is not accessible.
- self.custom_create_links() fails with PKGBUILD because the permissions of bin directory is read-only.
author | Arnaud Joset <info@agayon.be> |
---|---|
date | Mon, 02 Apr 2018 10:39:55 +0200 |
parents | 5cefc6ab302f |
children |
rev | line source |
---|---|
861
5cefc6ab302f
server: moved APP_VERSION to common.constants + avoid __init__ import in browser side, which was the source of a crash
Goffi <goffi@goffi.org>
parents:
856
diff
changeset
|
1 try: |
5cefc6ab302f
server: moved APP_VERSION to common.constants + avoid __init__ import in browser side, which was the source of a crash
Goffi <goffi@goffi.org>
parents:
856
diff
changeset
|
2 from common.constants import Const as C |
5cefc6ab302f
server: moved APP_VERSION to common.constants + avoid __init__ import in browser side, which was the source of a crash
Goffi <goffi@goffi.org>
parents:
856
diff
changeset
|
3 except ImportError: |
5cefc6ab302f
server: moved APP_VERSION to common.constants + avoid __init__ import in browser side, which was the source of a crash
Goffi <goffi@goffi.org>
parents:
856
diff
changeset
|
4 pass # import doesn't work at this stage with pyjamas |
5cefc6ab302f
server: moved APP_VERSION to common.constants + avoid __init__ import in browser side, which was the source of a crash
Goffi <goffi@goffi.org>
parents:
856
diff
changeset
|
5 else: |
5cefc6ab302f
server: moved APP_VERSION to common.constants + avoid __init__ import in browser side, which was the source of a crash
Goffi <goffi@goffi.org>
parents:
856
diff
changeset
|
6 __version__ = C.APP_VERSION |