LuxCore as Python Wheel

Discussion related to the Engine functionality, implementations and API.
Post Reply
User avatar
Dade
Developer
Posts: 1884
Joined: Mon Dec 04, 2017 8:36 pm

LuxCore as Python Wheel

Post by Dade » Tue Feb 13, 2018 11:29 am

Python Wheels are a form of packaging distribution used by Python. It is extremely handy and ubiquitous. LuxCoreRender is now available as Wheel in PyPI repository: https://pypi.python.org/pypi/luxcorerender

This mean it can be installed any Linux (and Windows soon) with just a "sudo pip install luxcorerender":

Code: Select all

david@i7-3930k:~/projects/luxcorerender/LinuxCompile$ sudo pip3 install luxcorerender
Collecting luxcorerender
  Downloading luxcorerender-2.0a4.dev1-cp34-cp34m-manylinux1_x86_64.whl (24.8MB)
    100% |████████████████████████████████| 24.8MB 74kB/s 
Installing collected packages: luxcorerender
Successfully installed luxcorerender-2.0a4.dev1
david@i7-3930k:~/projects/luxcorerender/LinuxCompile$ python3
And then can be used out of the box:

Code: Select all

david@i7-3930k:~/projects/luxcorerender/LinuxCompile$ python3
Python 3.4.3 (default, Nov 28 2017, 16:41:13) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyluxcore
>>> pyluxcore.Init()
>>> print(pyluxcore.Version())
2.0alpha4
>>> 
This is very handy for 2 categories of people:

1) Python developers;

2) Anyone using cloud servers (AWS, Google Cloud, etc.) and looking for the fastest way to install LuxCore for network rendering. It is available everywhere with just one command.
Support LuxCoreRender project with salts and bounties

User avatar
B.Y.O.B.
Developer
Posts: 2100
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: LuxCore as Python Wheel

Post by B.Y.O.B. » Wed Feb 14, 2018 11:58 am

So... besides

Code: Select all

import antigravity
Python developers can now import a complete OpenCL renderer with a few commands :shock:

Pretty awesome.
Support LuxCoreRender project with salts and bounties

acasta69
Developer
Posts: 86
Joined: Tue Jan 09, 2018 3:45 pm

Re: LuxCore as Python Wheel

Post by acasta69 » Fri Jan 18, 2019 11:24 am

I'm reviving this old thread as I was wondering if it can be useful to resume this and provide regular updates for all platforms...
Personally I like the idea, but over some years I think I have seen only two-three users interested in that kind of Python-only usage, and it would mean some additional maintenance effort, especially for Windows, where the minor version of Python matters (I guess we should support at least the latest 2-3 of them in that case).

Does anyone think it could be worth doing this?
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v382.05

User avatar
Dade
Developer
Posts: 1884
Joined: Mon Dec 04, 2017 8:36 pm

Re: LuxCore as Python Wheel

Post by Dade » Fri Jan 18, 2019 11:33 am

acasta69 wrote:
Fri Jan 18, 2019 11:24 am
Does anyone think it could be worth doing this?
It is nice and very handy (especially when using a cloud service) but I don't have sincerely the time to maintain it: I haven't created a v2.1 Wheel. If someone else what to pick up the task, sure, otherwise I have higher priority stuff to do at the moment.
Support LuxCoreRender project with salts and bounties

Post Reply