# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python2.7 with DSX Spark 2.0.2
#     language: python
#     name: python2
# ---

# + [markdown] deletable=true editable=true
# ### Get current directory

# + deletable=true editable=true
import os
os.getcwd()

# + [markdown] deletable=true editable=true
# ### Set the directory to main project folder

# + deletable=true editable=true
os.chdir('/user-home/1001/DSX_Projects/sms-spam-filter-using-hortonworks/')

# + [markdown] deletable=true editable=true
# ### Create the Spam Filter Scikit package folder

# + deletable=true editable=true
# ! mkdir SpamFilterScikit
# ! mkdir SpamFilterScikit/SpamFilterScikit

# + [markdown] deletable=true editable=true
# ### Copying the scripts created to the package folder

# + deletable=true editable=true
# ! cp scripts/setup2.py SpamFilterScikit/
# ! cp scripts/__init__.py SpamFilterScikit/SpamFilterScikit/
# ! cp scripts/LRModelScikit.py SpamFilterScikit/SpamFilterScikit/

# + [markdown] deletable=true editable=true
# ### Building the Spam Filter Scikit egg

# + deletable=true editable=true
os.chdir('/user-home/1001/DSX_Projects/sms-spam-filter-using-hortonworks/SpamFilterScikit')
# ! python setup2.py bdist_egg

# + [markdown] deletable=true editable=true
# ### Egg file is created and available in the dist folder of the package

# + deletable=true editable=true
# ! ls dist

StarcoderdataJupyterScriptsDedupFiltered