ELTE-DH / NoSketch-Engine-Docker

A NoSketch Engine Docker image which is easy to use
GNU Lesser General Public License v3.0
17 stars 10 forks source link

Hack: Link site-pacakges to dist-packages #12

Closed dlazesz closed 2 years ago

dlazesz commented 2 years ago

Link site-packages to dist-packages to help Python find these packages (e.g. creating subcorpus and keywords on it -> calls mkstats with popen which calls manatee internally)

This solves two problems:

  1. Manatee is installed in /usr/local/lib/python3.9/site-packages directly (not e.g. in /usr/local/lib/python3.9/site-packages/manatee)
  2. /usr/local/lib/python3.9/site-packages is not in the path especially in restricted environments (e.g. mkstats called with popen)