You may be able to drop the binaries into those locations. Note I said build/acquire. In that case you'd acquire.Deployment is another matter.When it comes to PyDev, you'll want to make sure it's using the PYTHONPATH and site-packages locations you think it is. Further, you should probably figure out if "import clr" works. And from there, work on importing .net namespaces. If sometime fails, we'll need specific console output or stack traces to be of any use here I'd think.-bradOn Jul 22, 2013, at 5:50 PM, Jason Sachs <jmsachs@gmail.com> wrote:>To make PythonNet install formally inside an existing CPython, you are looking to build/acquire it as a module and install that module in your PYTHONPATH or in your site-packages for that CPython.>There are a number of ways to do this. depending on what you are downloading or building and where you are deploying.
So I can't just take the pythonnet binaries and put them on PYTHONPATH or in site-packages? I have to build it from source as a module? Either PYTHONPATH or site-packages will work for me; at this point I just want to make it work somehow. I tried with PyDev and can't seem to get it to recognize that System is a valid import.This is for an in-house tool that I need to make as easy as possible to install and use, I just need to write up the install procedure. It uses a data acquisition system which has .NET libraries but nothing for "pure" Python.On Mon, Jul 22, 2013 at 1:43 PM, Bradley Friedman <brad@fie.us> wrote:To make PythonNet install formally inside an existing CPython, you are looking to build/acquire it as a module and install that module in your PYTHONPATH or in your site-packages for that CPython. There are a number of ways to do this. depending on what you are downloading or building and where you are deploying.
You will likely need to better define your ultimate deployment requirements/needs to figure out how you'd want to approach that issue.
-brad
> _________________________________________________
On Jul 22, 2013, at 2:55 PM, Jason Sachs <jmsachs@gmail.com> wrote:
> Hi there--
>
> I've used Python a lot but am new to pythondotnet. I got it running on Windows 7 with no problem, by unzipping the download file, making sure PYTHONPATH and PYTHONHOME were setup properly, and running npython.exe.
>
> How do you get it to run in a debugger? (either PyDev on Eclipse, or Microsoft PTVS)
>
> Also, is there a way to install it "permanently" in an existing Python installation so that it will pickup the pythondotnet bridge when you run the regular "python.exe"?
>
> --Jason
> Python.NET mailing list - PythonDotNet@python.org
> http://mail.python.org/mailman/listinfo/pythondotnet