thegooglecodearchive / sfepy

Automatically exported from code.google.com/p/sfepy
0 stars 0 forks source link

make sfepy installable #84

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There is no 'make install'. This is required for various package management
systems, notably the SAGE one, see [1].

[1] http://www.sagemath.org/doc/developer/producing_spkgs.html

Original issue reported on code.google.com by robert.c...@gmail.com on 28 Apr 2009 at 9:08

GoogleCodeExporter commented 9 years ago
What build/install system shall we use? There are many options, namely
- regular 'make install'
- cmake
- python distutils (-1)
- scons
- numpy distutils

I have started with numpy distutils, and already have some design issues:

SfePy has two kinds of scripts - the top level ones (like simple.py, 
runTests.py and
isfepy) that can go to PREFIX/bin, and auxiliary ones in the script/ directory. 
What
to do with the latter?

Original comment by robert.c...@gmail.com on 12 May 2009 at 2:46

GoogleCodeExporter commented 9 years ago
I would suggest cmake, that way you can compile sfepy in parallel easily, and
discovery works nice too (e.g. picking up all the libraries).

As to scripts, the auxiliary ones should I think go to 
/usr/share/sfepy/scripts/,
e.g. PREFIX/share/sfepy/scripts.

Original comment by ondrej.c...@gmail.com on 12 May 2009 at 5:18

GoogleCodeExporter commented 9 years ago
Can cmake install to the usual Python directory, i.e. site-packages, or does it 
know
how to install Python packages?

Maybe we can combine things: use cmake to build the extension modules, and then 
use
e.g. the numpy distutils.

Actually I find the numpy.distutils pretty good (especially compared to the 
plain
distutils), I will give it a shot first, as cmake is completely unknown 
territory for me.

Original comment by robert.c...@gmail.com on 13 May 2009 at 6:40

GoogleCodeExporter commented 9 years ago
Ok, what you think is the best.

cmake can install anywhere you teach it. I use it for hermes and it seems to 
work
fine for me. But numpy distutils should work too, but it will not be possible to
compile in parallel I think.

Original comment by ondrej.c...@gmail.com on 13 May 2009 at 8:01

GoogleCodeExporter commented 9 years ago
Could you go through the Makefile of sfepy, and look at the targets, namely
$(VERSIONH), version, reldist (this is used to make a release tarball) and 
htmldocs? 

If you think that it will be easy to implement with cmake, then +1, but you 
will have
to help me :)

How does cmake handle subdirectories? Currently I just include all the 
Makefile.inc
files into the main Makefile.

I can already install scripts where I need them with numpy.distutils, but the 
above
targets wait for resolving anyway...

Original comment by robert.c...@gmail.com on 13 May 2009 at 8:14

GoogleCodeExporter commented 9 years ago
You can try the numpy.distutils based development version - it install the 
python
files, no extension modules yet.

$ git clone git://github.com/rc/sfepy.git
$ cd sfepy
$ git checkout -b install  origin/install
$ python setup.py install --root=/tmp

Original comment by robert.c...@gmail.com on 13 May 2009 at 8:23

GoogleCodeExporter commented 9 years ago
Extension modules work - see 'extmods' branch on github.

$ make clean
$ python setup.py build_ext --inplace # (*)
$ $ ./runTests.py

So (*) can be used instead of the 'make' command!

Original comment by robert.c...@gmail.com on 14 May 2009 at 6:43

GoogleCodeExporter commented 9 years ago
All test tasks listed in INSTALL work now [1] (tag basic_install_done), so let 
us
close this general issue. For specific installation tasks new issues should be 
created.

[1] 
http://git.sympy.org/?p=sfepy.git;a=commit;h=1f80c411770ccec6d54e187aab2cbe9ecd6
84a67

Original comment by robert.c...@gmail.com on 15 May 2009 at 2:01

GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/sfepy/sfepy/issues/87

Original comment by robert.c...@gmail.com on 30 Jan 2012 at 10:25