=== Snapshot package from VCS (2)

Let's consider another upstream source in the VCS and make a snapshot package from it.  Let's assume this is a Python3 source package in distutils.

Let's inspect files.

----
include::../hello-py-1.0_di/ref/step101.log[]
----

There are minimalistic configuration files for Autotools.

*setup.py*:

----
include::../hello-py-1.0_di/ref/step102.log[]
----

The Python program code is as follows.

----
include::../hello-py-1.0_di/ref/step105.log[]
----

You create a non-native Debian package source tree from the above upstream example using the *debmake*(1) command.  Here package description is copied from the upstream *setup.py* content by the *-s* option.

----
sys::[head -n20  ../hello-py-1.0_di/ref/step200.log]
 ...
sys::[grep '^I: debmake -x' ../hello-py-1.0_di/ref/step200.log]
 ...
sys::[tail -n5  ../hello-py-1.0_di/ref/step200.log]
----

Let’s inspect the result.

----
include::../hello-py-1.0_di/ref/step600.log[]
----

----
include::../hello-py-1.0_di/ref/step700.log[]
----

----
include::../hello-py-1.0_di/ref/step701.log[]
----

Let's check the generated control file content.

----
include::../hello-py-1.0_di/ref/step800.log[]
----

Let's compare how packaging deals with substvar etc.

.*debian/control* in the source package
----
include::../hello-py-1.0_di/ref/step801.log[]
----

.*DEBIAN/control* in the binary package
----
include::../hello-py-1.0_di/ref/step802.log[]
----
