.py\.pyc to .dll

269 views
Skip to first unread message

Emanuel

unread,
Aug 10, 2012, 11:10:32 AM8/10/12
to shedskin-discuss
I, someone can tell me how i can convert an .py file or .pyc, to
an .dll file with the shedskin ?

Thanks

Fahrzin Hemmati

unread,
Aug 10, 2012, 9:25:16 PM8/10/12
to shedskin...@googlegroups.com, Emanuel
I believe you just run shedskin -e and compile the result on windows,
but I've never done it to find out.

Emanuel

unread,
Aug 11, 2012, 2:12:02 PM8/11/12
to shedskin...@googlegroups.com, Emanuel

It  doesn't work... Apeeras this:


PS: the file abc.py have 40 kb.


Jérémie Roquet

unread,
Aug 11, 2012, 2:37:55 PM8/11/12
to shedskin...@googlegroups.com, Emanuel
Hi Emanuel,

2012/8/11 Emanuel <eeste...@gmail.com>
> It doesn't work... Apeeras this:
> [snip]
>
> PS: the file abc.py have 40 kb.

Does it work with the regular implementation of Python (CPython) ?

Best regards,

--
Jérémie

Emanuel

unread,
Aug 11, 2012, 11:14:42 PM8/11/12
to shedskin...@googlegroups.com, Emanuel
Jérémie ´

I don't know x.x, can you explain how I do with the CPython please? 

Pʀoмᴇтнᴇυs 0x01

unread,
Aug 12, 2012, 1:56:55 AM8/12/12
to shedskin...@googlegroups.com
Er, when you do "python <filename>" does it run?

(I think that's what Jeremie meant)

--
You received this message because you are subscribed to the Google Groups "shedskin-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/shedskin-discuss/-/xyk0k1p9LFwJ.

To post to this group, send email to shedskin...@googlegroups.com.
To unsubscribe from this group, send email to shedskin-discu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/shedskin-discuss?hl=en.

Jérémie Roquet

unread,
Aug 12, 2012, 8:14:11 AM8/12/12
to shedskin...@googlegroups.com, Emanuel
2012/8/12 Pʀoмᴇтнᴇυs 0x01 <prometh...@gmail.com>:
> On Sat, Aug 11, 2012 at 9:14 PM, Emanuel <eeste...@gmail.com> wrote:
>> Em sábado, 11 de agosto de 2012 19h37min55s UTC+1, Jérémie Roquet
>> escreveu:
>>> 2012/8/11 Emanuel <eeste...@gmail.com>
>>> > It doesn't work... Apeeras this:
>>> > [snip]
>>> >
>>> > PS: the file abc.py have 40 kb.
>>>
>>> Does it work with the regular implementation of Python (CPython) ?
>>>
>> I don't know x.x, can you explain how I do with the CPython please?
>>
> Er, when you do "python <filename>" does it run?
>
> (I think that's what Jeremie meant)

Yes, exactly. Please make sure first that you can run “python abc.py”
(forget about the .pyc, you can't do anything with it).
If you can't, then it is not an issue with shedskin, but with your script.

Best regards,

--
Jérémie

Emanuel

unread,
Aug 14, 2012, 1:20:14 PM8/14/12
to shedskin...@googlegroups.com, Emanuel

"python abc.py", appears this:

Jérémie Roquet

unread,
Aug 14, 2012, 1:41:43 PM8/14/12
to shedskin...@googlegroups.com, Emanuel
2012/8/14 Emanuel <eeste...@gmail.com>
> "python abc.py", appears this:
> [snip]

If I read correctly, you've run “abc.py python”, not “python abc.py”.
You have to run “python abc.py” instead.

Anyway, it seems that Windows used the right interpreter for it, so…

You have non-ASCII characters in your source code (accentuated
characters, maybe — at least there is a “ç”). This shouldn't prevent
you from running it using CPython (you have to prepend something like
“# -*- coding: utf-8 -*-” — without the quotes — at the top of the
file), but unfortunately, shedskin only supports ASCII for now.

You should make sure you script can run with CPython. If it can't,
then it will never run with shedskin. If it can, then you can ask
yourself /if/ shedskin can be of any help for your specific usage of
Python. Shedskin is useful to run a script faster than with CPython,
but obviously, the script has to run at all /first/.

Best regards,

--
Jérémie

Emanuel

unread,
Aug 14, 2012, 4:31:11 PM8/14/12
to shedskin...@googlegroups.com, Emanuel
I think I understand...
Thanks. :b 
Reply all
Reply to author
Forward
0 new messages