Patch #2651

buildout for nml

Added by andythenorth almost 9 years ago. Updated almost 9 years ago.

Status:ClosedStart date:2011-05-23
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:-

Description

This will
- fetch PIL and PLY. If you already have PIL and PLY it will detect that
- run nml's setup.py (n.b it puts nmlc into ./bin)
- set the shebang in ./bin/nmlc to the version of python you built with. This is useful for people who have multiple python versions installed.

To use:
- [apply patch]
- run bootstrap.py
- run ./bin/buildout
- finished

./bin/buildout can be re-run at any point, this is useful when trunk changes and deps need updating etc.

use ./bin/buildout -v to run buildout in verbose mode

This buildout could also run the test suite if desired.

add_buildout_nml.diff Magnifier (11.3 KB) andythenorth, 2011-05-23 19:40

Associated revisions

Revision 1356:e1d65387e75b
Added by yexo almost 9 years ago

Add #2651: buildout script to make installation on OS X and MSYS easier

Revision 1356:e1d65387e75b
Added by yexo almost 9 years ago

Add #2651: buildout script to make installation on OS X and MSYS easier

History

#1 Updated by andythenorth almost 9 years ago

Replacing the contents of buildout.cfg with the following will also run the test suite on build:

[buildout]
eggs =
    PIL
    ply
    nml

parts = nml
        command
versions = versions

develop = .

find-links =
    http://dist.plone.org/thirdparty/
    http://pypi.python.org/simple

[versions]
PIL = 1.1.7
ply = 3.4

[nml]
recipe = zc.recipe.egg:scripts
eggs = ${buildout:eggs}
scripts = nmlc

[command]
recipe = plone.recipe.command
command = cd regression && make NMLC="../bin/nmlc" 

#2 Updated by Terkhen almost 9 years ago

On windows:

1) Install python
2) Add python to PATH

On MSYS:

3) Clone nml code
4) Apply patch
5) python bootstrap.ph
6) ./bin/buildout
7) Add bin/ to the PATH

NML was installed correctly; I could compile OpenGFX+ Trains.

#3 Updated by yexo almost 9 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF