How to package & deploy Node.js + express web application?

Deploying Node.js applications is very easy stuff. In maven, there is pom.xml. Related concept in Node.js is package.json. You can state your dependencies on package.json. You can also do environmental setup on package.json. For example, in dev environment you can say that I want to run unit tests. but in production; I want to skip … Read more

How to create Python egg file

You are reading the wrong documentation. You want this: https://setuptools.readthedocs.io/en/latest/setuptools.html#develop-deploy-the-project-source-in-development-mode Creating setup.py is covered in the distutils documentation in Python’s standard library documentation here. The main difference (for python eggs) is you import setup from setuptools, not distutils. Yep. That should be right. I don’t think so. pyc files can be version and platform dependent. … Read more

How to build a Debian/Ubuntu package from source?

you can use the special package “checkinstall” for all packages which are not even in debian/ubuntu yet. You can use “uupdate” (apt-get install devscripts) to build a package from source with existing debian sources: Example for libdrm2: apt-get build-dep libdrm2 apt-get source libdrm2 cd libdrm-2.3.1 uupdate ~/Downloads/libdrm-2.4.1.tar.gz cd ../libdrm-2.4.1 dpkg-buildpackage -us -uc -nc

How should I structure a Python package that contains Cython code

I’ve done this myself now, in a Python package simplerandom (BitBucket repo – EDIT: now github) (I don’t expect this to be a popular package, but it was a good chance to learn Cython). This method relies on the fact that building a .pyx file with Cython.Distutils.build_ext (at least with Cython version 0.14) always seems … Read more

How to write setup.py to include a Git repository as a dependency

After digging through the pip issue 3939 linked by @muon in the comments above and then the PEP-508 specification, I found success getting my private repo dependency to install via setup.py using this specification pattern in install_requires (no more dependency_links): install_requires = [ ‘some-pkg @ git+ssh://git@github.com/someorgname/pkg-repo-name@v1.1#egg=some-pkg’, ] The @v1.1 indicates the release tag created on … Read more

Create a single executable from a Python project [closed]

There are several different ways of doing this. The first — and likely most common — way is to use “freeze” style programs. These programs work by bundling together Python and your program, essentially combining them into a single executable: PyInstaller: Website || Repo || PyPi Supports Python 3.7 – 3.10 on Windows, Mac, and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)