Page 1 of 1

LuxCore as Python Wheel

Posted: Tue Feb 13, 2018 11:29 am
by Dade
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.

Re: LuxCore as Python Wheel

Posted: Wed Feb 14, 2018 11:58 am
by B.Y.O.B.
So... besides

Code: Select all

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

Pretty awesome.

Re: LuxCore as Python Wheel

Posted: Fri Jan 18, 2019 11:24 am
by acasta69
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?

Re: LuxCore as Python Wheel

Posted: Fri Jan 18, 2019 11:33 am
by Dade
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.