Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Unpacking and using Pyramids without installing?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Han Chuang  
View profile  
 More options Mar 4, 2:46 pm
From: Han Chuang <muddy...@gmail.com>
Date: Mon, 4 Mar 2013 11:46:14 -0800 (PST)
Local: Mon, Mar 4 2013 2:46 pm
Subject: Unpacking and using Pyramids without installing?

I'm trying to plan for one of my projects, and I'm considering using
pyramid as a base. But while I was fiddling with it, I realized it wasn't
really cross-platform.
Is there any way to use pyramid/pylons without installing it? I would like
to unpackage it and use it as an import, allowing me to move my project as
a folder to many different computers with different OSes and performing
normally.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Withers  
View profile  
 More options Mar 4, 3:29 pm
From: Chris Withers <ch...@simplistix.co.uk>
Date: Mon, 04 Mar 2013 20:29:10 +0000
Local: Mon, Mar 4 2013 3:29 pm
Subject: Re: Unpacking and using Pyramids without installing?
On 04/03/2013 19:46, Han Chuang wrote:

> I'm trying to plan for one of my projects, and I'm considering using
> pyramid as a base. But while I was fiddling with it, I realized it
> wasn't really cross-platform.

Care to provide some evidence/background for your sweeping generalisations?

> Is there any way to use pyramid/pylons without installing it?

What do you mean by "installing"?

> I would
> like to unpackage it and use it as an import, allowing me to move my
> project as a folder to many different computers with different OSes and
> performing normally.

It's more usual to have a requirements.txt or buildout.cfg and install
separately on each machine you need it.

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Han Chuang  
View profile  
 More options Mar 4, 3:56 pm
From: Han Chuang <muddy...@gmail.com>
Date: Mon, 4 Mar 2013 12:56:41 -0800 (PST)
Local: Mon, Mar 4 2013 3:56 pm
Subject: Re: Unpacking and using Pyramids without installing?

Sorry, I didn't mean it wasn't downright incompatible with cross platform.
My wording was off.
I meant that, If I wanted to do it following the tutorial on the website, I
would have to create a script that installs the virtual environment and
pyramid for that OS, then run it. I would have to include a binary for each
OS in the package to send to each one.

My project in a nutshell was going to just be packaged up, and the user
would just download it and the main.py through python shell and enable it,
allowing them to see the page.

Thank you for the response in terms of having a requirements.txt, it
answered my question since that was something I was kind of hoping to try
and avoid.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tonthon  
View profile  
 More options Mar 4, 7:59 pm
From: tonthon <tontho...@gmail.com>
Date: Tue, 05 Mar 2013 01:59:09 +0100
Local: Mon, Mar 4 2013 7:59 pm
Subject: Re: Unpacking and using Pyramids without installing?
Maybe esky could be a solution ?

https://github.com/cloudmatrix/esky

Le 04/03/2013 20:46, Han Chuang a crit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Han Chuang  
View profile  
 More options Mar 5, 1:46 pm
From: Han Chuang <muddy...@gmail.com>
Date: Tue, 5 Mar 2013 10:46:49 -0800 (PST)
Local: Tues, Mar 5 2013 1:46 pm
Subject: Re: Unpacking and using Pyramids without installing?

No, it's not frozen or anything, and I intend to keep the entire tar fully
updated.

import os
import logging
import sqlite3
import sys
sys.path.append("/pyramid-1.4/pyramid/")
import pyramid

I placed the unzipped pyramid egg inside tasks.py in hopes it can pick it
up, but it claims it can't find pyramid even though it's on the python path.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile  
 More options Mar 5, 3:14 pm
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Tue, 5 Mar 2013 12:14:36 -0800 (PST)
Local: Tues, Mar 5 2013 3:14 pm
Subject: Re: Unpacking and using Pyramids without installing?
1. you're adding '/pyramid-1.4/pyramid' to the sys.path.   that's
looking at the root of your entire system, not the the root of your
project.

2.   ruby has something called 'bundler' , which basically automates
virtualenv + pip + routes, or lets you create a "vendor" directory
where you can distribute 3rd party libraries with your code.  python
doesn't really have that.  this is something you'll deal with on any
Python framework.

There are 2 general ways I've seen people handle this

A. Create a 'lib' or 'extlib' ( external library ) directory .  stick
all of your 3rd party libraries in there.  note that this will only
work for pure-python libraries -- ones that don't have c extensions.

B. Use a packaging tool.  These posts talk about different strategies
    http://stackoverflow.com/questions/106725/how-to-bundle-a-python-appl...
    http://hackerboss.com/how-to-distribute-commercial-python-applications/

StackOverflow has a lot of questions on this topic.  I strongly
suggest you explore there and ask some questions there as well --
although this involves pyramid, your concerns are really on Python
packaging in general.

In general though -- what you're trying to do is what 99.9999999% of
people who use Python actively avoid and recommend against.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »