We could use this in CMake:
execute_process(COMMAND ${python} import sys; print sys.path;
OUTPUT_VARIABLE PYTHON_PATH)
and then install python libraries to ${PYTHON_PATH}/nupic
:-)
On 11 April 2014 15:06, David Ragazzi <[email protected]> wrote:
> Subutai,
>
> Isn't.. sys.path py function return default location (PYTHONPATH).. It's
> just we use this default location!
>
>
> On 11 April 2014 15:01, Subutai Ahmad <[email protected]> wrote:
>
>>
>> Yes, but that *requires* you to set an environment variable.
>>
>> --Subutai
>>
>> On Fri, Apr 11, 2014 at 10:16 AM, Matthew Taylor <[email protected]>wrote:
>>
>>> On Fri, Apr 11, 2014 at 9:58 AM, Subutai Ahmad <[email protected]>
>>> wrote:
>>> > To see why it would not work consider this: I should be able to login
>>> to my
>>> > home directory, type python, and then do "import nupic". It is
>>> necessary to
>>> > support this. Unless the NuPIC release is *placed* in a standard
>>> location,
>>> > python will have no idea where nupic is.
>>>
>>> +1. I do this all the time. However, I can easily update my PYTHONPATH
>>> after I've built NuPIC.
>>>
>>>
>>>
>>> ---------
>>> Matt Taylor
>>> OS Community Flag-Bearer
>>> Numenta
>>>
>>> _______________________________________________
>>> nupic mailing list
>>> [email protected]
>>> http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
>>>
>>
>>
>> _______________________________________________
>> nupic mailing list
>> [email protected]
>> http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
>>
>>
>
>
> --
> David Ragazzi
> OS Community Commiter
> Numenta.org
> --
> "I think James Connolly, the Irish revolutionary, is right when he says that
> the only prophets are those who make their future. So we're not
> anticipating, we're working for it."
>
--
David Ragazzi
OS Community Commiter
Numenta.org
--
"I think James Connolly, the Irish revolutionary, is right when he says that
the only prophets are those who make their future. So we're not anticipating
, we're working for it."
_______________________________________________
nupic mailing list
[email protected]
http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org