[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mesa3d-dev
Subject:    Re: [Mesa-dev] Mesa devel requiring Python
From:       Karl Schultz <karl.w.schultz () gmail ! com>
Date:       2010-04-29 16:50:32
Message-ID: g2x323670911004290950gbdff2912t66528080355ddf56 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Thu, Apr 29, 2010 at 9:54 AM, Brian Paul <brianp@vmware.com> wrote:

> Was: "Merging GLES1/2 to mesa/main"
>
> Chia-I Wu wrote:
>
>> 2010/4/29 Kristian H=F8gsberg <krh@bitplanet.net>:
>>
>
>  Yeah, I noticed... I don't have a good answer.  I guess core mesa
>>> doesn't generate on the fly because we don't want to require python as
>>> part of the build process(?) and also so that when we distribute mesa,
>>> all the files are in the tarball.  I don't know if we can move to just
>>> generate everything, but we can always just generate the es1 and es2
>>> api files and commit them.  That would solve the ordering issue you
>>> mention below too.
>>>
>>
>  I am not a fan of having generated sources in git, but I don't have a
>> strong
>> opinion here.  Especially when I do not have a better solution :)
>>
>> Ideally, I would like to have python a requirement for developers.  And
>> those
>> sources are generated when making a release tarball so that python is no=
t
>> a
>> requirement for users.
>>
>
> I'd be in favor of that (requiring Python to build Mesa).  Afterall, it's
> already needed for building with SCons.
>
> Karl Schultz (if you're reading this), would this be hard to deal with on
> Windows with MSVC project files?
>
> Also note that we have some lex/yacc-generated files in Mesa too.  I'd
> leave those as-is for now.
>
> -Brian
>

It is probably doable.  Visual Studio allows the specification of
"pre-build" or "custom-build" steps that can include invoking any external
commands.  This is how the predefined shaders get built in 7.8.  I'd just
have to create the appropriate build steps to generate the required files.
These build steps would presumably call a python executable with the name o=
f
the python script and parameters.

The catch is that anyone wanting to build this would need to install python
on the Windows box.   I see (and have installed) ActivePython 2.6.5.12 from
activestate.com.  I suppose that there may be other choices.  But installin=
g
this package adds the Python binaries to the users PATH, which may help
avoid needing to have the user config the build step to locate Python.

The only downside I see is the new requirement of installing Python for
people using the Visual Studio.  I don't regard that as a show-stopper,
IMHO.

What version of Python is needed to run these build scripts?  Are there any
other prerequisites?

Karl

[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">On Thu, Apr 29, 2010 at 9:54 AM, Brian Paul <span \
dir="ltr">&lt;<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; \
                border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Was: &quot;Merging GLES1/2 to mesa/main&quot;<br>
<br>
Chia-I Wu wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px \
solid rgb(204, 204, 204); padding-left: 1ex;"> 2010/4/29 Kristian Høgsberg &lt;<a \
href="mailto:krh@bitplanet.net" target="_blank">krh@bitplanet.net</a>&gt;:<br> \
</blockquote> <br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px \
solid rgb(204, 204, 204); padding-left: 1ex;"><blockquote class="gmail_quote" \
style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); \
padding-left: 1ex;">

Yeah, I noticed... I don&#39;t have a good answer.  I guess core mesa<br>
doesn&#39;t generate on the fly because we don&#39;t want to require python as<br>
part of the build process(?) and also so that when we distribute mesa,<br>
all the files are in the tarball.  I don&#39;t know if we can move to just<br>
generate everything, but we can always just generate the es1 and es2<br>
api files and commit them.  That would solve the ordering issue you<br>
mention below too.<br>
</blockquote></blockquote>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px \
solid rgb(204, 204, 204); padding-left: 1ex;"> I am not a fan of having generated \
sources in git, but I don&#39;t have a strong<br> opinion here.  Especially when I do \
not have a better solution :)<br> <br>
Ideally, I would like to have python a requirement for developers.  And those<br>
sources are generated when making a release tarball so that python is not a<br>
requirement for users.<br>
</blockquote>
<br>
I&#39;d be in favor of that (requiring Python to build Mesa).  Afterall, it&#39;s \
already needed for building with SCons.<br> <br>
Karl Schultz (if you&#39;re reading this), would this be hard to deal with on Windows \
with MSVC project files?<br> <br>
Also note that we have some lex/yacc-generated files in Mesa too.  I&#39;d leave \
those as-is for now.<br> <br>
-Brian<br></blockquote></div><br>It is probably doable.  Visual Studio allows the \
specification of &quot;pre-build&quot; or &quot;custom-build&quot; steps that can \
include invoking any external commands.  This is how the predefined shaders get built \
in 7.8.  I&#39;d just have to create the appropriate build steps to generate the \
required files.  These build steps would presumably call a python executable with the \
name of the python script and parameters.<br> <br>The catch is that anyone wanting to \
build this would need to install python on the Windows box.   I see (and have \
installed) ActivePython 2.6.5.12 from <a \
href="http://activestate.com">activestate.com</a>.  I suppose that there may be other \
choices.  But installing this package adds the Python binaries to the users PATH, \
which may help avoid needing to have the user config the build step to locate \
Python.<br> <br>The only downside I see is the new requirement of installing Python \
for people using the Visual Studio.  I don&#39;t regard that as a show-stopper, \
IMHO.<br><br>What version of Python is needed to run these build scripts?  Are there \
any other prerequisites?<br> <br>Karl<br><br>



_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic