Re: [sage-release] Sage 7.0 released

2016-06-08 Thread kcrisman
While trying binary-pkg for Sage 7.2 on OS X 10.7 (due to be upgraded to 
new computer within a week, so wanted to provide last binaries from that), 
apparently the tar and non-app dmg were created, but the app failed with 
the following.  Any ideas?  (Later today or tomorrow I can provide these 
for upload to mirrors, but not if I don't have the app version.  I'll note 
I rarely had trouble creating bdist with the sage-bdist script...)

total size is 2610034433  speedup is 1.00
test -d sage-7.2-OSX_10.7.5_x86_64/SageMath-7.2.app/Contents/Resources/sage 
&& touch sage-7.2-OSX_10.7.5_x86_64/SageMath-7.2.app/Contents/Resources/sage
rm -f sage-7.2-OSX_10.7.5_x86_64/SageMath-7.2.app/sage
ln -s Contents/Resources/sage/sage 
sage-7.2-OSX_10.7.5_x86_64/SageMath-7.2.app/sage
cp 
/Users/karl.crisman/Downloads/binary-pkg/staging/OSX_mac_app/SageMath/src/bin/sage-README-osx.txt
 
sage-7.2-OSX_10.7.5_x86_64/README.txt
rm -f sage-7.2-OSX_10.7.5_x86_64/.DS_Store
tools/createDSStore/createDSStore.py sage-7.2-OSX_10.7.5_x86_64 
sage-7.2-OSX_10.7.5_x86_64 SageMath-7.2.app
Traceback (most recent call last):
  File "tools/createDSStore/createDSStore.py", line 146, in 
app_name = sys.argv[3])
  File "tools/createDSStore/createDSStore.py", line 123, in createDSStore
with ds_store.DSStore.open(filePath, 'w+') as d:
  File 
"/Users/karl.crisman/Downloads/binary-pkg/staging/OSX_mac_app/SageMath/src/mac-app/tools/createDSStore/ds_store/store.py",
 
line 269, in open
store = buddy.Allocator.open (file_or_name, mode)
  File 
"/Users/karl.crisman/Downloads/binary-pkg/staging/OSX_mac_app/SageMath/src/mac-app/tools/createDSStore/ds_store/buddy.py",
 
line 221, in open
return Allocator (f)
  File 
"/Users/karl.crisman/Downloads/binary-pkg/staging/OSX_mac_app/SageMath/src/mac-app/tools/createDSStore/ds_store/buddy.py",
 
line 136, in __init__
count, self._unknown2 = self._root.read('>II')
  File 
"/Users/karl.crisman/Downloads/binary-pkg/staging/OSX_mac_app/SageMath/src/mac-app/tools/createDSStore/ds_store/buddy.py",
 
line 76, in read
return struct.unpack (size_or_format, data)
struct.error: unpack requires a string argument of length 8
make[2]: *** [sage-7.2-OSX_10.7.5_x86_64/.DS_Store] Error 1
cp: SageMath/src/mac-app/sage-7.2-*.app.dmg: No such file or directory
ERROR:root:Script failed:
ERROR:root:DMG=/Users/karl.crisman/Downloads/binary-pkg/dist/sage-7.2-OSX_10.7.5-x86_64.app.dmg
rm -f $DMG
pwd
(cd SageMath/src/mac-app && make)
cp SageMath/src/mac-app/sage-7.2-*.app.dmg $DMG

Traceback (most recent call last):
  File 
"/Users/karl.crisman/Downloads/binary-pkg/tools/binary-pkg/lib/python3.4/runpy.py",
 
line 170, in _run_module_as_main
"__main__", mod_spec)
  File 
"/Users/karl.crisman/Downloads/binary-pkg/tools/binary-pkg/lib/python3.4/runpy.py",
 
line 85, in _run_code
exec(code, run_globals)
  File "/Users/karl.crisman/Downloads/binary-pkg/binary_pkg/cmdline.py", 
line 78, in 
launch()
  File "/Users/karl.crisman/Downloads/binary-pkg/binary_pkg/cmdline.py", 
line 74, in launch
package.dist_script.run()
  File 
"/Users/karl.crisman/Downloads/binary-pkg/binary_pkg/bash_script.py", line 
37, in run
['bash', self._filename], cwd=self._cwd, env=self.env())
  File 
"/Users/karl.crisman/Downloads/binary-pkg/tools/binary-pkg/lib/python3.4/subprocess.py",
 
line 561, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['bash', 
'/Users/karl.crisman/Downloads/binary-pkg/tmp/SageMath/tmp976sv49f.sh']' 
returned non-zero exit status 1
make[1]: *** [dist-sage] Error 1
make: *** [bdist-sage-osx] Error 2

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-release+unsubscr...@googlegroups.com.
To post to this group, send email to sage-release@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-release] Sage 7.0 released

2016-06-08 Thread Volker Braun
We improved the mac app bundling script recently, seems like it is not 
compatible with OSX 10.7


On Wednesday, June 8, 2016 at 8:54:24 AM UTC-4, kcrisman wrote:
>
> While trying binary-pkg for Sage 7.2 on OS X 10.7 (due to be upgraded to 
> new computer within a week, so wanted to provide last binaries from that), 
> apparently the tar and non-app dmg were created, but the app failed with 
> the following.  Any ideas?  (Later today or tomorrow I can provide these 
> for upload to mirrors, but not if I don't have the app version.  I'll note 
> I rarely had trouble creating bdist with the sage-bdist script...)
>
> total size is 2610034433  speedup is 1.00
> test -d 
> sage-7.2-OSX_10.7.5_x86_64/SageMath-7.2.app/Contents/Resources/sage && 
> touch sage-7.2-OSX_10.7.5_x86_64/SageMath-7.2.app/Contents/Resources/sage
> rm -f sage-7.2-OSX_10.7.5_x86_64/SageMath-7.2.app/sage
> ln -s Contents/Resources/sage/sage 
> sage-7.2-OSX_10.7.5_x86_64/SageMath-7.2.app/sage
> cp 
> /Users/karl.crisman/Downloads/binary-pkg/staging/OSX_mac_app/SageMath/src/bin/sage-README-osx.txt
>  
> sage-7.2-OSX_10.7.5_x86_64/README.txt
> rm -f sage-7.2-OSX_10.7.5_x86_64/.DS_Store
> tools/createDSStore/createDSStore.py sage-7.2-OSX_10.7.5_x86_64 
> sage-7.2-OSX_10.7.5_x86_64 SageMath-7.2.app
> Traceback (most recent call last):
>   File "tools/createDSStore/createDSStore.py", line 146, in 
> app_name = sys.argv[3])
>   File "tools/createDSStore/createDSStore.py", line 123, in createDSStore
> with ds_store.DSStore.open(filePath, 'w+') as d:
>   File 
> "/Users/karl.crisman/Downloads/binary-pkg/staging/OSX_mac_app/SageMath/src/mac-app/tools/createDSStore/ds_store/store.py",
>  
> line 269, in open
> store = buddy.Allocator.open (file_or_name, mode)
>   File 
> "/Users/karl.crisman/Downloads/binary-pkg/staging/OSX_mac_app/SageMath/src/mac-app/tools/createDSStore/ds_store/buddy.py",
>  
> line 221, in open
> return Allocator (f)
>   File 
> "/Users/karl.crisman/Downloads/binary-pkg/staging/OSX_mac_app/SageMath/src/mac-app/tools/createDSStore/ds_store/buddy.py",
>  
> line 136, in __init__
> count, self._unknown2 = self._root.read('>II')
>   File 
> "/Users/karl.crisman/Downloads/binary-pkg/staging/OSX_mac_app/SageMath/src/mac-app/tools/createDSStore/ds_store/buddy.py",
>  
> line 76, in read
> return struct.unpack (size_or_format, data)
> struct.error: unpack requires a string argument of length 8
> make[2]: *** [sage-7.2-OSX_10.7.5_x86_64/.DS_Store] Error 1
> cp: SageMath/src/mac-app/sage-7.2-*.app.dmg: No such file or directory
> ERROR:root:Script failed:
>
> ERROR:root:DMG=/Users/karl.crisman/Downloads/binary-pkg/dist/sage-7.2-OSX_10.7.5-x86_64.app.dmg
> rm -f $DMG
> pwd
> (cd SageMath/src/mac-app && make)
> cp SageMath/src/mac-app/sage-7.2-*.app.dmg $DMG
>
> Traceback (most recent call last):
>   File 
> "/Users/karl.crisman/Downloads/binary-pkg/tools/binary-pkg/lib/python3.4/runpy.py",
>  
> line 170, in _run_module_as_main
> "__main__", mod_spec)
>   File 
> "/Users/karl.crisman/Downloads/binary-pkg/tools/binary-pkg/lib/python3.4/runpy.py",
>  
> line 85, in _run_code
> exec(code, run_globals)
>   File "/Users/karl.crisman/Downloads/binary-pkg/binary_pkg/cmdline.py", 
> line 78, in 
> launch()
>   File "/Users/karl.crisman/Downloads/binary-pkg/binary_pkg/cmdline.py", 
> line 74, in launch
> package.dist_script.run()
>   File 
> "/Users/karl.crisman/Downloads/binary-pkg/binary_pkg/bash_script.py", line 
> 37, in run
> ['bash', self._filename], cwd=self._cwd, env=self.env())
>   File 
> "/Users/karl.crisman/Downloads/binary-pkg/tools/binary-pkg/lib/python3.4/subprocess.py",
>  
> line 561, in check_call
> raise CalledProcessError(retcode, cmd)
> subprocess.CalledProcessError: Command '['bash', 
> '/Users/karl.crisman/Downloads/binary-pkg/tmp/SageMath/tmp976sv49f.sh']' 
> returned non-zero exit status 1
> make[1]: *** [dist-sage] Error 1
> make: *** [bdist-sage-osx] Error 2
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-release+unsubscr...@googlegroups.com.
To post to this group, send email to sage-release@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-release] Sage 7.0 released

2016-06-08 Thread kcrisman


> We improved the mac app bundling script recently, seems like it is not 
> compatible with OSX 10.7
>
>>
>>
I saw some posts about 10.8 not working but that was post 7.2, it was 7.3 
betas, so I didn't think there would be a problem.  

Was this related to this?  
https://github.com/sagemath/binary-pkg/commit/4d827f34da028563e69b066bda5ffba91c937eaa

No: 
https://github.com/sagemath/sage/commit/7b66c50be6c44f97d9779b40aaca15cd2ee035e4
and specifically this line failed
https://github.com/sagemath/sage/blob/master/src/mac-app/tools/createDSStore/ds_store/buddy.py#L76

So is there any alternative?  In the past one could "just make the bundle" 
and then drop the binary in.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-release+unsubscr...@googlegroups.com.
To post to this group, send email to sage-release@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-release] Sage 7.0 released

2016-06-08 Thread kcrisman
 > We improved the mac app bundling script recently, seems like it is not 
compatible with OSX 10.7

Volker: mgoerner helped me some at #20119:

"I think you can just remove $(TARGET)/.DS_store from the non_app_files: 
target in src/mac-app/Makefile and then build it on 10.7 -without the nice 
arrangement of the icons and background image :(

I am not sure how you can tell binary_pkg to pick up that change. I would 
commit that change to a local repository and point binary_pkg's sage_yaml 
to that local repository."


I did all this, and even


name: SageMath

repository: /Users/karl.crisman/Downloads/sage
branch: osx-10-7


doesn't seem to work.  Does the file assume an online repository?  I don't 
know how to make it look right but certainly


$ ls ../sage/.git

has the usual stuff.  Any help is greatly appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-release+unsubscr...@googlegroups.com.
To post to this group, send email to sage-release@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-release] Sage 7.0 released

2016-06-08 Thread Volker Braun
You should be able to use local repos but only using the normal git syntax, 
i.e.

repository: file:///Users/karl.crisman/Downloads/sage
branch: osx-10-7


On Wednesday, June 8, 2016 at 3:28:07 PM UTC-4, kcrisman wrote:
>
>  > We improved the mac app bundling script recently, seems like it is not 
> compatible with OSX 10.7
>
> Volker: mgoerner helped me some at #20119:
>
> "I think you can just remove $(TARGET)/.DS_store from the non_app_files: 
> target in src/mac-app/Makefile and then build it on 10.7 -without the nice 
> arrangement of the icons and background image :(
>
> I am not sure how you can tell binary_pkg to pick up that change. I would 
> commit that change to a local repository and point binary_pkg's sage_yaml 
> to that local repository."
>
>
> I did all this, and even
>
>
> name: SageMath
>
> repository: /Users/karl.crisman/Downloads/sage
> branch: osx-10-7
>
>
> doesn't seem to work.  Does the file assume an online repository?  I don't 
> know how to make it look right but certainly
>
>
> $ ls ../sage/.git
>
> has the usual stuff.  Any help is greatly appreciated!
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-release+unsubscr...@googlegroups.com.
To post to this group, send email to sage-release@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-release] Sage 7.0 released

2016-06-08 Thread kcrisman


> repository: file:///Users/karl.crisman/Downloads/sage
> branch: osx-10-7
>
>
Got it - I've never seen that syntax before since I've never had to clone 
something already local before :) thank you very much.  Though 
unfortunately it still gives the same error message :(
 
http://trac.sagemath.org/ticket/20789

I think what is happening is that

def git_clone(config):
if os.path.exists(os.path.join(config.source_path, '.git')):
subprocess.check_call([
'git', 'checkout', config.branch
], cwd=config.source_path)
subprocess.check_call([
'git', 'pull', '--ff-only'
], cwd=config.source_path)
else:
subprocess.check_call([
'git', 'clone', config.repository, '-b', config.branch, 
config.source_path
])

is noting that my local path to the git repo does exist, but then

$ git checkout osx-10-7
error: pathspec 'osx-10-7' did not match any file(s) known to git.

which makes sense because that branch is not in binary-pkg (I couldn't 
figure out exactly where source_path was set).

But I'd rather patch binary-pkg than try to do it otherwise at this point.  
Almost there!

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-release+unsubscr...@googlegroups.com.
To post to this group, send email to sage-release@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.