Want to automatically generate Eclipse project files - python

I am using the Tasking IDE (based on Eclipse IDE) for my C/C++ project on Windows 10.
I would like to automatically generate the eclipse project files (.cproject and .project) to perform continuous deployment, but the solution is not clear to me.
I think I could generate the project files using Python but I did no manage to find documentation on how those files are structured (schema).
Alternatively, is there a command line tool which I could use to generate those files ? I am wondering if eclipsec could be used for such a task.
I could as well generate the makefiles directly( without generating the project files at all). But I need the project files for debugging purposes.
Thank in advance. Since I am not an Eclipse/Java expert, any help would be greatly appreciated.

Related

How to compile python, QT5 app and create single app custom raspberry ISO

I have written a small program in python and QT5. I want it on raspberry PI as a single application. I have checked out buildroot and yocto but can't seems to find a single tutorial which can explain the steps from compiling the python code and make it part of buildroot/yocto. Can anyone please guide me or point me to a tutorial.
Regards,
In Buildroot, there are two ways that you can add your own Python code to the build.
Using a root filesystem overlay to add you python files in the appropriate place in the root filesystem. This has a lot of limitations though: it doesn't get byte-compiled, you have to make sure yourself that it gets installed in some location in PYTHONPATH, and generally it's a bit more difficult to maintain. However, it's a very simple approach for a first try.
Creating a custom python package. It's also not really complicated to do that, but you really do have to read the documentation.

Creating and Using Modules Outside of Jupyter

I have been working in Jupyter Notebook/Python for a while now and want to modularize a lot of my scripts, so that I can just call them going forward and have data populate inside or outside of Jupyter.
import mynewdatatable
mynewdatatable.spinon()
-> Wonderful new table
In addition to modularizing my scripts, I'm also trying to get more comfortable in Visual Studio.
Where do I write my code in VS so that it can take advantage of all the modules in Conda and where do I save the modules I create so that they can be used by other scripts?
Also, any good resources on managing/understanding directories would be greatly appreciated.
Additional Details
OS: Windows

How to package a Python project into MSIX package?

I currently work on a Python project, which I'd like to upload to the Microsoft Store in the future.
As far as I am aware, in order to upload applications to the Microsoft Store, it is necessary that the application will be packed into the MSIX format.
Now the question is - is it possible to pack a Python project into the MSIX format?
I already tried two possible approaches
The first approach
I assumed that it will be much easier to pack an .exe file into an MSIX package. Since .py files require an interpreter in order to run, I managed to freeze the Python project into a standalone .exe runnable file - and it works pretty good.
I found a useful tool made by Microsoft, which is supposed to pack .exe files under the MSIX format. The tool is MSIX Packaging Tool which is available at the Microsoft Store. I did manage to create an .msix file but I can't run in since Windows says that I have to sign the .exe first.
The second approach
I found out that it is possible to pack a project into an MSIX package, by using built-in tools inside Visual Studio 2019. So I managed to move my whole python project into Visual Studio, and follow the next steps in order to pack my project.
The problem is that already in the early stages, when adding the reference to my python project, the next error occurs:
I'd love to know if you have any other possible approaches for packing a Python project into an MSIX package.

Python programming with Eclipse+Pydev code assistant without sources

I'm using Eclipse+pydev plugin to develop python applications using a proprietary python framework. How can i set up a code assistant in this IDE without having framework sources available? Is there any open source tool so generate a documentation stub from sources files and then make it readable by pydev plugin without the need of having these sorces in my project? Do you have any ideas?
Thank you,
Alessandro
Well, if you're developing against it, you should have at least the .pyc/.pyd files, so, just make sure that you add the proper folder containing those to the PYTHONPATH and add the needed entries to the forced builtins (http://www.pydev.org/manual_101_interpreter.html has instructions).
If that's not enough (i.e.: PyDev can't discover the needed info by introspection from a live interpreter), you can create a file to provide "Predefined Completions" to it (again, http://www.pydev.org/manual_101_interpreter.html has instructions for that).

Multi-target solution builder

An opensource project currently uses CMake to generate project files for multiple versions of Visual Studio.
I noticed that Node uses python script to do a similar thing but is more elegant since the output of the tool doesn't hardcode directory paths into those project files. However the current node setup only seems to support 2010 and 2012. The node documentation doesn't say what the build tools are just "The build tools distributed with Node run on python."
The batch file included with Node calls python configure, but doing a search on that returns a zillion unrelated results.
I was wondering if this tool/script is
an open source project with website, documentation, etc.
extensible to earlier versions of VS (2003 onwards).
What I am looking to do is produce a bunch of solutions and projects that should just work straight out the box and not be tied to a particular dev's directory layout like CMake does. Also the script allows me to easily update multiple scripts if a file gets added or removed.
It turns out Node uses GYP to generate it's project files. I had a quick play earlier and seems fairly easy to use.

Categories