Page 2 of 2

Re: NEURON and PYTHON on Mac

Posted: Fri Sep 21, 2012 10:19 am
by NeuroRhythms
Sorry, I have not gotten it to work. Here is my setup.py file.

Code: Select all

hoc_module = Extension(
      "neuron.hoc",
      ["inithoc.cpp"],
      library_dirs=libdirs,
      = [ epre+libdirs[0],epre+libdirs[1] ],
      #extra_objects = [],
      libraries = [
	"nrnpython",
        "nrnoc", "oc", "nrniv", "ivoc",
        "memacs", "meschach", "neuron_gnu", "nrnmpi",
        "scopmath", "sparse13", "sundials", "IVhines",
	"readline"
      ],
      include_dirs = include_dirs,
      define_macros=defines
    )
You are saying that the fifth line should be commented out, or combined with line 6 and commented out?

Re: NEURON and PYTHON on Mac

Posted: Fri Sep 21, 2012 10:30 am
by hines
If all had gone well the line should have read:

Code: Select all

      #extra_link_args = [ epre+libdirs[0],epre+libdirs[1] ],
Since it is commented out, in your case it wouldn't hurt to delete it.
If your change continues to be overwritten by setup.py.in then edit that
file and remove the line

Code: Select all

      @setup_extra_link_args@ = [ epre+libdirs[0],epre+libdirs[1] ],