Skip to content
Camilo Valenzuela edited this page May 9, 2017 · 6 revisions

Welcome to the pycupid wiki!

Preparing Manylinux Container

  • To create Manylinux container

       sudo docker run -td --name manylinux64 quay.io/pypa/manylinux1_x86_64 bash
    
  • Enter container

      sudo docker exec -it manylinux64 bash
    
  • Install Pre-requisites

       yum groupinstall -y "Development Tools"
       yum install -y csh libXext-devel libXau-devel \
        libX11-devel libXt-devel libxml2-devel ncurses-devel texlive-multirow python-devel Cython
    

Compiling Starlink

  • Clone git

      git clone https://github.com/ChileanVirtualObservatory/pycupid.git
      cd pycupid
    
  • Compile

       make -j 4 &> make.log
    

Preparing python

  • Install Anaconda

Install anaconda to create environment for each python distribution (2.7,3.4,3.5,3.6)

  • Create pypi config file Create a ~/.pypirc file with the following:

     [pypi]
     username = <username> 
     password = <password>
    

Creating and uploading wheels

Using make

Run make upload_wheels, this will create the necessary environments and upload the files using twine

Manually

  • Create wheel Enter the python environment and run

     python setup.py bdist_wheel --plat-name manylinux1_x86_64
    
  • Send wheel to PyPi

    Install twine pip install twine

    And upload the dist twine upload dist/*