Commit Graph

10 Commits

Author SHA1 Message Date
Sławomir Nizio
6d4a3f09e6 makefiles: establish a layout for sitedir installs
The idea is that:
- entropy.* imports will work as before (so any 3rd party clients will
  work as always) - installed in "entropy" package,
- new "_entropy" package to hold a namespace for private modules (like
  ones that required adding special directories to sys.path).
  (Underscored name for a top level Python module is not very common...
  anyway, it was inspired by "_emerge.")

Layout:
site-packages/
    entropy (backwards compatible)
	const.py
	...
    kswitch (also toplevel to keep compatibility)
	...
    _entropy
	eit
	magneto
	matter
	rigo
	RigoDaemon
	solo

(Note that site-packages does not need to be actually Python's
site-packages directory but anything as it is controlled by an argument
to make. It is however intended to be the sitedir.)

Another idea for a layout would be one that mimics sources checkout, but
the layout there is somewhat scattered. (And some ugliness would be
needed to make them modules before implicit namespaces from Python 3.3.
Anyway, imports would be long and ugly.)

Now, the layout of installed Entropy is lean; installation to virtualenv
is also possible (though there would be a need to call scripts like
"python equo.py" as shebangs are not converted).

Follow up changes are needed to make it work.
2018-11-26 20:15:36 +01:00
Sławomir Nizio
33966f4f31 [*] allow setting PYTHON_SITEDIR for make
This way a proper separation between Python installs can be achieved.

With no PYTHON_SITEDIR, installation paths are exactly the same as
before this change.

In practise, passing nonstandard path will break Entropy but so it is
also with the currently available LIBDIR. This is a concern of a future
improvement (at least the PYTHON_SITEDIR path, not necessarily LIBDIR as
PYTHON_SITEDIR *will* be different if it's installed in Python specific
directories).
2018-10-28 21:44:54 +01:00
Fabio Erculiani
424b81aaf1 [matter] move matter to its own directory, get ready to split it off 2012-12-22 21:10:52 +01:00
Fabio Erculiani
cd12e89f84 [matter] split and clean matter, make the Entropy dependency optional 2012-12-21 00:44:04 +01:00
Fabio Erculiani
dad36a9a80 [antimatter] rename antimatter to antimatter.py 2012-12-20 21:41:20 +01:00
Fabio Erculiani
ff029d3817 [matter] rename matter to matter.py 2012-12-20 21:40:49 +01:00
Fabio Erculiani
bf4dee312a [server] new tool for detecting package updates and upstream removals 2012-12-16 18:09:30 +01:00
Fabio Erculiani
601d41d42b [entropy] split server and client .po files 2012-04-18 20:02:31 +02:00
Fabio Erculiani
2f02cf0672 [server] fix installation of eit modules 2011-11-12 22:21:56 +01:00
Fabio Erculiani
44471c5ba3 [entropy.server] move Makefile logic to server/, add man support to eit, move matter to server/ 2011-11-10 15:33:43 +01:00