1 Star 0 Fork 1

Sopadilla / uPyCraft_src

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

uPyCraft_src

uPyCraft is an IDE designed for micropython that supports Windows 7, Windows 8, Windows 10, Linux, MAC OSX 10.11, and above.To make it easier for users to use, uPyCraft is released in green in all systems, no need to install.

Windows

Installation

This requires you to have python3.4, pyqt4, py2exe, qsci, pyserial and pyflakes installed.

  1. python3.4:

   download address:https://www.python.org/downloads/windows/
       add python to the windows environment variable when installed.

update pip: python -m pip install -U pip 
    add pip to the windows environment variable, such as C:/Python34/Scripts 
    
pyserial:pip install pyserial 

py2exe  :pip install py2exe
    Python34/Lib/site-packages/py2exe/icons.py Modify lines89:if iconheader.idCount>10 -> if iconheader.idCount>20
    
pyflakes:pip install pyflakes 
    find api.py and replace with pyflakesChange/api.py 
  1. pyqt4:

    sip:
    download address:https://www.riverbankcomputing.com/software/sip/download

     unpack the directory and open
     exec:
         python configure.py
     
     enter Visual Studio command prompt, changedir to sip installed path
         nmake
         nmake install

    PyQt4:
    download address:https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.4/
    follow "next" to install.

Running

Open uPyCraft.py with python3.4 IDE, click the run module button/F5 to run.

Package uPyCraft

uPyCraft.exe will be created in directory dist/ .

Linux

Environment

ubuntu16.04 LTS Python3.5 PyQt4

Install

SIP

Download SIP from https://riverbankcomputing.com/software/sip/download

tar zxvf sip-4.19.tar.gz -C /home/PyQt
sudo python configure.py
sudo make install

QT support library

sudo apt-get install qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer
sudo apt-get install libqwt5-qt4 libqwt5-qt4-dev

PyQt4

Download PyQt4_gpl_x11-4.12 from https://sourceforge.net/projects/pyqt/files/PyQt4/

tar zxvf PyQt4_gpl_x11-4.12.tar.gz -C /home/PyQt
cd /home/PyQt/PyQt4_gpl_x11-4.12
sudo python configure.py
sudo make
sudo make install

QScintilla

Download QScintilla from https://sourceforge.net/projects/pyqt/files/QScintilla2/QScintilla-2.9.1/

tar zxvf QScintilla-2.9.1.tar.gz
cd QScintilla-2.9.1
#Qt4Qt5
cd Qt4Qt5
qmake
sudo make
sudo make install
#Python
cd ../Python
python3 configure.py
sudo make
sudo make install
#designer-Qt4Qt5
cd ../designer-Qt4Qt5
qmake designer.pro
sudo make
sudo make install

Package uPyCraft

pip install pyinstaller
pyinstaller -F uPyCraft.py

Mac

Environment

os 10.11 Python3.5 PyQt4

Install

qt4.8.7

Download qt4.8.7 from http://mirrors.ustc.edu.cn/qtproject/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz

cd Desktop
tar vxf qt-everywhere-opensource-src-4.8.7.tar.gz

In qt-everywhere-opensource-src-4.8.7/src/gui/painting/qpaintengine_mac.cpp
insted:

CGColorSpaceRef colorSpace = 0;
CMProfileRef displayProfile = 0;
CMError err = CMGetProfileByAVID((CMDisplayIDType)displayID, &displayProfile);
if (err == noErr) {
    colorSpace = CGColorSpaceCreateWithPlatformColorSpace(displayProfile);
    CMCloseProfile(displayProfile);
}

to:

CGColorSpaceRef colorSpace = CGDisplayCopyColorSpace(displayID);

install:

cd qt-everywhere-opensource-src-4.8.7
./configure
make  #2-4h
sudo make install

configure environment:

cd 
vim .bash_profile

PATH=/usr/local/Trolltech/Qt-4.8.7/bin:$PATH
export PATH

source ~/.bash_profile

qmake:

qmake -v
QMake version 2.01a
Using Qt version 4.8.7 in /usr/local/Trolltech/Qt-4.8.7/lib

SIP

Download SIP from https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.8/sip-4.19.8.tar.gz/download

cd Desktop
tar vxf sip-4.19.8.tar.gz
cd sip-4.19.8
sudo python3 configure.py
sudo make install

PyQt4

Download PyQt4 from https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12.1/PyQt4_gpl_mac-4.12.1.tar.gz/download

cd Desktop
tar vxf PyQt4_gpl_mac-4.12.1.tar.gz
cd PyQt4_gpl_mac_4.12.1
sudo python3 configure.py
sudo make #20min
sudo make install

QScintilla

Download QScintilla from https://sourceforge.net/projects/pyqt/files/QScintilla2/QScintilla-2.9.1/QScintilla-gpl-2.9.1.tar.gz/download

cd Desktop
tar vxf QScintilla-gpl-2.9.1.tar.gz
cd QScintilla-gpl-2.9.1
#Qt4Qt5
cd Qt4Qt5
qmake
sudo make
sudo make install
#Python
cd ../Python
python3 configure.py
sudo make
sudo make install
#designer-Qt4Qt5
cd ../designer-Qt4Qt5
qmake designer.pro
sudo make
sudo make install

Package uPyCraft

pip install pyinstaller
pyinstaller -F uPyCraft.py

空文件

简介

haas micropython 开发工具 展开 收起
Python 等 3 种语言
取消

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/Sopadilla/uPyCraft_src.git
git@gitee.com:Sopadilla/uPyCraft_src.git
Sopadilla
uPyCraft_src
uPyCraft_src
master

搜索帮助