patchCERTI - Patches: patch #6864, Proposition for a PyHLA automatic...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #6864: Proposition for a PyHLA automatic configuration scripts

Submitter:  Eric NOULARD <erk>
Submitted:  Sun 12 Jul 2009 05:12:01 PM UTC
   
 
Category:  PyHLA Priority:  5 - Normal
Status:  Works For Me Privacy:  Public
Assigned to:  erk Open/Closed:  Open

Mon 13 Jul 2009 11:13:46 AM UTC, comment #5: 


> Regarding "tar" this is a CMake -E command.
> All those commands are builtin directly in the CMake executable
> thus you may indeed use it on Windows too.


Wow! Every day I learn something new.

> I may do it myself if you want.


Yes, please. Go ahead.

Petr Gotthard <gotthardp>
Group Member
Mon 13 Jul 2009 10:31:10 AM UTC, comment #4: 

Hi Petr,
just tested on windows.

More work is needed because the "default"  CMake
generator on Windows is Visual Studio 6 which may
not be working.

I shoud find a way to detect a working compiler/IDE
and/or write an autoconfigure scripts for "current" most
found windows IDE.

I'll put that on hold and switch to other task.
It would be nice if you could checkin the last
version of the script since it is definitely better.

I may do it myself if you want.

Eric NOULARD <erk>
Group administrator
Mon 13 Jul 2009 10:14:12 AM UTC, comment #3: 

Thank you for including my script in the source.

I agree Windows users are indeed used to .exe installer.

However, I'd like to make it work on Windows too because
it's an example for me on how to try
to "autoconfigure" CMake build software in a "portable" way.

Moreover you do not get much of the Open Source spirit
if you don't get the source :=)
Nevertheless most "user" are afraid of "building" or
"compiling" because they found its a geek task.
I'd like to make this idea a little less true.
The idea would that with a single program, CMake
and a CMake script you can have your development
environment automatically setup.


PyHLA should be an easy example because it does not
have much dependencies besides CERTI.

Regarding "tar" this is a CMake -E command.
All those commands are builtin directly in the CMake executable
thus you may indeed use it on Windows too.

You may have a look at this recent CMake ML thread:
http://www.cmake.org/pipermail/cmake/2009-July/030582.html

The remaining portability issue is to automatically find
the default build tool used by CMake on the considered
platform.

I did some trick the newly attached file for that.
I'll give it a try on Windows.



(file #18421)

Eric NOULARD <erk>
Group administrator
Sun 12 Jul 2009 08:04:04 PM UTC, comment #2: 

Another nice script. I did commit it to the PyHLA main directory.

Win32 portability may not be an easy task in this case. Besides make, also tar is not available on Win32 platform.

Perhaps we don't need Win32 port of this script. At least my Windows users prefer the executable installer. ;-)

Petr Gotthard <gotthardp>
Group Member
Sun 12 Jul 2009 05:13:22 PM UTC, comment #1: 

Sorry the first attachment was wrong.

(file #18417)

Eric NOULARD <erk>
Group administrator
Sun 12 Jul 2009 05:12:01 PM UTC, original submission:  

The attached CMake script is a proof of concept
of automatic configuration (and may be installation)
for PyHLA *from source* using CMake.

Try it using:

cd /tmp/
cmake -P PyHLA-autoconfigure.cmake

you should end up with a
 
/tmp/PyHLA-1.0.0-Source

configure and compiled tree, using the tarball found
on Savannah.

I did only test it on Linux, but the script should work
on Windows too (at least theorertically) if
the "make" step is replaced with the appropriate build tool.

The idea would be to give a single CMake script to
user who are in a hurry and want to install PyHLA.

The current script does not install.

Eric NOULARD <erk>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #18421:  PyHLA-autoconfigure.cmake added by erk (3KiB - text/x-cmake)
file #18417:  PyHLA-autoconfigure.cmake added by erk (3KiB - text/x-cmake - The script file)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gotthardp (Posted a comment)
  • -email is unavailable- added by erk (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-07-13 gotthardp Assigned toNone erk
    2009-07-13 erk Attached File- Added PyHLA-autoconfigure.cmake, #18421
    2009-07-12 erk Attached File- Added PyHLA-autoconfigure.cmake, #18417
    2009-07-12 erk Attached File#18416 Removed
    2009-07-12 erk Attached File- Added PyHLAdoc-2.patch, #18416

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code