Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ https://youtu.be/0bBKOFdQKzo
Install
=======

Vy actually demands python 2.7 to run.
Vy actually demands python 2.7 or python3.x to run.

This is a short script to install the latest version of vy.

Expand All @@ -111,6 +111,10 @@ This is a short script to install the latest version of vy.
python setup.py install


To build vy in Python3 flavor, you need to run setup.py with the python3 interpreter,
as well as installing python3-tkinter and python3-pygments instead pf their python2
equivalents.


Once you have installed vy and its dependencies,
run on a terminal the following command.
Expand Down
28 changes: 10 additions & 18 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#! /usr/bin/env python

from distutils.core import setup

try:
from distutils.command.build_py import build_py_2to3 \
as build_py
except ImportError:
from distutils.command.build_py import build_py

setup(name="vy",
version="0.1",
packages=["vyapp",
Expand All @@ -14,21 +21,6 @@
scripts=['vy'],
package_data={'vyapp': ['vyrc', '/vyapp/vyrc']},
author="Iury O. G. Figueiredo",
author_email="ioliveira@id.uff.br")

















author_email="ioliveira@id.uff.br",
cmdclass = {'build_py': build_py}
)
2 changes: 1 addition & 1 deletion vy
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if __name__ == '__main__':

root = App()
lst = eval(str(opt.lst))
lst = lst + map(lambda ind: [[ind]], args)
lst = lst + list(map(lambda ind: [[ind]], args))

if not lst: root.note.create('None')
else: root.note.load(*lst)
Expand Down
2 changes: 2 additions & 0 deletions vyapp/stdout.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def remove(self, fd):

def write(self, data):
for ind in self.base:
if sys.version_info >= (3, 0):
data = str(data)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it just be better to do ind.write(str(data))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like it doesn't matter much either way? (would get removed when Py2x is dropped).

ind.write(data)

def echo(data):
Expand Down