NEURON and PYTHON on Mac

NeuroRhythms
Posts: 18
Joined: Mon Aug 13, 2012 7:29 pm

Re: NEURON and PYTHON on Mac

Post 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?
hines
Site Admin
Posts: 1687
Joined: Wed May 18, 2005 3:32 pm

Re: NEURON and PYTHON on Mac

Post 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] ],
Post Reply