forum.vmspython.org Forum Index forum.vmspython.org
Forum system
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Makefile config_vars not set

 
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> Python for OpenVMS
View previous topic :: View next topic  
Author Message
douglasrupp



Joined: 24 Jul 2012
Posts: 15

PostPosted: Tue Jul 24, 2012 9:54 pm    Post subject: Makefile config_vars not set Reply with quote

The following should return ".exe" on VMS. I don't know if shareable images are supported re: Python on VMS but I'm trying to port some Linux scripts, and the lack of the definition is causing a failure.

A pointer to where to hardcode the Makefile config vars would be most appreciated so I can get passed this bug. The value of "None" here causes a problem when an attempt is made to concatenate it with a string.

$ python
Python 2.7.3+ (default, Apr 20 2012, 20:06:26) [DECC] on OpenVMS
Type "help", "copyright", "credits" or "license" for more information.
>>> from distutils.sysconfig import get_config_var
>>> print get_config_var('SO')
None
>>>
Back to top
View user's profile Send private message
douglasrupp



Joined: 24 Jul 2012
Posts: 15

PostPosted: Tue Jul 24, 2012 11:03 pm    Post subject: Reply with quote

The solution is to edit lib/python2.7/config/Makefile, which is an empty file, and insert a line:
SO = .exe
Back to top
View user's profile Send private message
jfp



Joined: 12 Jul 2004
Posts: 633

PostPosted: Wed Jul 25, 2012 5:33 pm    Post subject: Reply with quote

Thanks for the fix, I have applied it, see http://hg.vmspython.org/cpython/.hg/patches-27/rev/f8a5c2ce4cbf

Shareable images are supported in Python for OpenVMS, what is not, currently supported, is the automatic building of a shareable from a source module.

What is provided, as is, is a small python script (python_root:[vms]build_module.py) which can build a shaerable from a single source file module.

Again, thanks for your help.

JF
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> Python for OpenVMS All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group